We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e231d02 commit ead49eeCopy full SHA for ead49ee
LeetCode SQL 50 Solution/196. Delete Duplicate Emails.sql
@@ -51,3 +51,8 @@ Explanation: [email protected] is repeated two times. We keep the row with the sm
51
52
53
54
+# Write your MySQL query statement below
55
56
+DELETE p2 FROM Person p1
57
+JOIN Person p2
58
+ON p1.email = p2.email AND p1.id < p2.id;
0 commit comments