medium10 pts · first answer countswindow-functionssqldata-cleaning
Marking duplicates in an UPDATE
You want to set is_duplicate = true on every copy except the first per email. Why can't you write ROW_NUMBER() directly in the UPDATE's WHERE?
Discussion 0
Join free to post in the discussion.