Contents

Delete Duplicate Emails

   Feb 26, 2023     0 min read

Delete Duplicate Emails

문제

196-1.jpg
196-2.jpg

코드

Oracle

 DELETE FROM PERSON
 WHERE ID NOT IN (SELECT MIN(ID)
                    FROM PERSON
                    GROUP BY EMAIL)

수행결과

196result.jpg