理解了一下你的需求,你试试以下语句
select a.name, a.age, b.school from table1 a join (select distinct name from table2 where city='北京') b on a.name=b.name where a.china='中国' and a.height between 160 and 200
select distinct * from
(select a.name, a.age, b.school from table1 a
select distinct * from table
select distinct * from table
distinct去重复