Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

delete recurring email keep smallest id number

DELETE P1
FROM PERSON P1, PERSON P2
WHERE P1.EMAIL=P2.EMAIL AND P1.ID>P2.ID;
Source by leetcode.com #
 
PREVIOUS NEXT
Tagged: #delete #recurring #email #smallest #id #number
ADD COMMENT
Topic
Name
4+6 =