提示:不关联怎么联合查询!你的方法可以啊
select * from (select * from table1 ...)a join table2 b on  a.id=b.id and ...

解决方案 »

  1.   

    我的意思是能不能直接查询出来后就关联而不是查询出来后,再select查询结果后关联
      

  2.   

    select * into #ccc from table1...
    select * from #ccc a join table2 on a.id=b.id and ....不知道能否满足你的要求.
      

  3.   

    to 茶杯:你写的语句和(select * from table1 ...) as table1 join table2 on ...道理是一样的。