select t1.id,t1.no1,t2.[name],t1.no2,t3.[name] from t1 left join t2 on t1.no1=t2.id left join t2 as t3 on t1.no2=t3.id