SELECT Q,COUNT(*) 出现总次数
FROM (SELECT Q FROM 表1 UNION ALL SELECT Q FROM 表2)
GROUP BY Q
HAVING COUNT(*)>10
表 a ....,total,...
表 b ...,total,...
查询 a,b 中 total 含有 各种可能相同的数据
select * from a
where total in (select total from a group by total having count(total) > 10)
union
select * from b
where total in (select total from b group by total having count(total) > 10)
;