select a.f1,b.f1,c.f1,d.f1 from a inner join b on a.f1=b.f1 inner join c on a.f1=c.f1 inner join d on c.f1=d.f1 where b.f1="" or c.f1="" or d.f1=""

解决方案 »

  1.   

    SELECT T.F1,A.F2,B.F3,C.F4 From
     (((Select F1 From A Union Select F1 From B Union Select F1 From C) T
      Left Join A On T.F1 = A.F1)
      Left Join B On T.F1 = B.F1) 
      Left Join C On T.F1 = C.F1 注:这里的别名T及括号等不能省。
      

  2.   

    SELECT T.F1,A.F2,B.F3,C.F4 INTO D
      From
        (((Select F1 From A Union Select F1 From B Union Select F1 From C) T
        Left Join A On T.F1 = A.F1)
        Left Join B On T.F1 = B.F1) 
        Left Join C On T.F1 = C.F1 注:这里的别名T及括号等不能省。