Skip to content

Commit

Permalink
Time: 667 ms (81.80%), Space: 0B (100.00%) - LeetHub
Browse files Browse the repository at this point in the history
  • Loading branch information
joseantoniochacon committed Sep 28, 2024
1 parent 64701b1 commit 7ad3582
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions 0196-delete-duplicate-emails/0196-delete-duplicate-emails.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Write your MySQL query statement below
DELETE FROM Person WHERE id NOT IN (SELECT id FROM (SELECT MIN(id) AS id, email FROM Person GROUP BY email) unique_emails);

0 comments on commit 7ad3582

Please sign in to comment.