题目:
此题有多种解法:
1.自连查询
# Write your MySQL query statement below select distinct(person1.Email) as Email from Person person1,Person person2 where person1.Email=person2.Email and person1.ID!=person2.ID
2.统计查询
# Write your MySQL query statement below select Email from Person group by Email having count(Email)>1
3.内连查询
# Write your MySQL query statement below select distinct(person1.Email) from Person person1 inner join Person person2 on person1.Email = person2.Email and person1.Id != person2.Id
附: