select a1.F1, a1.F2 a2.F4 from a1,a2 where a1.F1=a2.F3

解决方案 »

  1.   

    select a1.f1,a1.f2,a2.f4
    from a1,a2
    where a1.f1=a2.f3
      

  2.   

    select a1.F1, a1.F2 ,isnull(a2.F4,'0') as score from a1,a2 where a1.F1=a2.F3
      

  3.   

    Select A.F1,A.F2,B.F4 from TableA,TablB where A.F1=B.F3
      

  4.   

    select a.f1.a.f2,(case when b.f4 is null then 0 else b.f4 end) as b.f4
    from a1 a,a2 b where a.f1=b.f3
      

  5.   

    select *,(select top 1 F4 from a2 where F3 = a1.F1) 联合 from a1
      

  6.   

    SELECT a1.f1,a1.f2,a2.f4 from a1 
    LEFT JOIN a2 ON a1.f1=a2.f3一切OK?
      

  7.   

    SELECT a1.F1, a1.F2, a2.F4
    FROM a1 INNER JOIN a2 ON a1.F1 = a2.F3;