本帖最后由 mosessonghua 于 2012-05-06 11:13:19 编辑

解决方案 »

  1.   

    union select Reciever WCL from B union select CL from A 
      

  2.   


    select * from tbl
    union all--不去掉两个语句里的重复行
    select * from tbl2
    select * from tbl
    union--去掉两个语句里的重复行
    select * from tbl2
      

  3.   

    楼上两位都搞错了吧 应该用LFFT JOIN
      

  4.   


    SELECT
     ISNULL(A.Reciever,B.Reciever) AS Reciever,ISNULL(B.WCL,0),ISNULL(A.CL,0) 
    FROM
     A FULL JOIN B 
    ON 
    A.Reciever=B.Reciever