思路:
本来考虑用left join
“ distinct一下
用当前的减去distinct得到的就是重复的邮箱
再对上面的这个结果distinct ”
后来参考181题的题解做出来的
select distinct a.Email
from
Person as a,
Person as b
where a.Email = b.Email
and a.Id <> b.Id
思路:
本来考虑用left join
“ distinct一下
用当前的减去distinct得到的就是重复的邮箱
再对上面的这个结果distinct ”
后来参考181题的题解做出来的
select distinct a.Email
from
Person as a,
Person as b
where a.Email = b.Email
and a.Id <> b.Id