mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-01-11 02:58:13 +08:00
24 lines
482 B
HTML
24 lines
482 B
HTML
<p>编写一个 SQL 查询,查找 <code>Person</code> 表中所有重复的电子邮箱。</p>
|
|
|
|
<p><strong>示例:</strong></p>
|
|
|
|
<pre>+----+---------+
|
|
| Id | Email |
|
|
+----+---------+
|
|
| 1 | a@b.com |
|
|
| 2 | c@d.com |
|
|
| 3 | a@b.com |
|
|
+----+---------+
|
|
</pre>
|
|
|
|
<p>根据以上输入,你的查询应返回以下结果:</p>
|
|
|
|
<pre>+---------+
|
|
| Email |
|
|
+---------+
|
|
| a@b.com |
|
|
+---------+
|
|
</pre>
|
|
|
|
<p><strong>说明:</strong>所有电子邮箱都是小写字母。</p>
|