182. Duplicate Emails

题目链接:

182. Duplicate Emails

解析:

这道题可以直接应用GROUP BY ... HAVING结构求解。

关于这个结构的用法可以参考:

MySQL之分组数据(group by & having)

题解:
# Write your MySQL query statement below
SELECT Email FROM Person GROUP BY Email HAVING COUNT(*)>=2;

你可能感兴趣的:(182. Duplicate Emails)