题目链接:182. 查找重复的电子邮箱 - 力扣(LeetCode)
题目描述
sql语句
方法1:使用临时表
select Email from
(select Email, count(Email) as numfrom Persongroup by Email
) as statistic
where num > 1
;
方法2:使用having
# Write your MySQL query statement below
select Person.email as email
from Person
group by email
having count(email)>1