解决方案 »

  1.   

    select * from table_xx t where t.A<>t.C and t.B is not null
      

  2.   

    select * from test   where a<>c and b is not null
      

  3.   

    这个需求,比较模糊。楼上几位有理解成了 a , c 不相等。
    我理解成,各行不重复.select a, c , max(b) from mytable where b is not null group by a,c
      

  4.   

    select a, c , b from mytable where b is not null group by a,c having count(a) = 1