我先在表 201207 查询数据, 然后在把201206 表的数据查询出来, 查询201206表的数据不能和201207 表中的数据重复,select * from 201206 t1,
(select DISTINCT a from 201207 t where   and t.xx = '000000'
and t.xx='1') t3 
where t1.a <> t3.a  and   and t1.xx= '000000' order by t1.xxx desc以上SQL不能满足现有的,他只能查询出 201207 表与201206  的一条不想同记录 有哪个高手帮忙下。