1. 程式人生 > >leetcode 182. Duplicate Emails

leetcode 182. Duplicate Emails

題意:查找出現一次以上的郵箱

select distinct x.Email /*這裡主要要加上distinct*/
from Person as x, Person as y 
where x.id != y.id and x.Email = y.Email;