归档 2015年3月29日

[LeetCode]Delete Duplicate Emails

题目描述:

Write a SQL query to delete all duplicate email entries in a table named Person, keeping only unique emails based on its smallest Id.

+----+------------------+
| Id | Email            |
+----+------------------+
| 1  | john@example.com |
| 2  | bob@example.com  |
| 3  | john@example.com |
+----+------------------+

Id ...

继续阅读

昨天

明天

归档