select distinct ABCDEF
(
select * from 表1
union all
select * from 表2
)
as 表
select * from table1 a where not exists (select 1 from table2 b where a.a <> b.a and a.b<>b.b and a.c <> b.c)
ps/sql的语法和T-sql差不多,无外乎联接查询和嵌套子查询两种方式。
具体的写法我就不赘述了,网上的例子有很多,楼上自己去试试写写看。。