美文网首页
182. Duplicate Emails

182. Duplicate Emails

作者: wenmingxing | 来源:发表于2018-07-16 11:06 被阅读42次
题目链接:

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

      本文链接:https://www.haomeiwen.com/subject/pgivpftx.html