Write a SQL query to find all duplicate emails in a table named Person.

+----+---------+
| Id | Email   |
+----+---------+
| 1  | a@b.com |
| 2  | c@d.com |
| 3  | a@b.com |
+----+---------+

For example, your query should return the following for the above table:

+---------+
| Email   |
+---------+
| a@b.com |
+---------+

1 # Write your MySQL query statement below
2 select Email from Person group by Email having COUNT(Email)>1

 

相关文章:

  • 2021-08-03
  • 2021-08-30
  • 2021-08-17
  • 2022-02-13
  • 2021-10-11
  • 2021-08-11
  • 2022-02-14
  • 2021-10-01
猜你喜欢
  • 2022-02-21
  • 2021-07-14
  • 2021-12-12
  • 2021-12-11
  • 2021-06-16
  • 2022-12-23
  • 2022-01-24
相关资源
相似解决方案