select id, name, memo from A where id in (select id from A group by id having count(1) >= 2)
// 同一个地区,同一个学校,名叫张伟的超过两个的人
select 地区,学校,名字 from table where 名字 = '张伟' group by 学校,地区 having count(1) > 1
select id, name, memo from A where id in (select id from A group by id having count(1) >= 2)
// 同一个地区,同一个学校,名叫张伟的超过两个的人
select 地区,学校,名字 from table where 名字 = '张伟' group by 学校,地区 having count(1) > 1