Advertisement
Guest User

Untitled

a guest
Nov 26th, 2014
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. delete from emails where email_id in(select email_id from emails group by email_id having
  2. count(*) >1)
  3.  
  4. Delete from email_table where ID NOT IN (SELECT DISCTINCT(email) FROM email_table)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement