Detailed notes for this lesson are being written. They appear here together with the video.
Video coming soonThis lesson’s video is being made
Start with the notes below; the video appears here as soon as it is on YouTube.
SQL and Databases · Lesson 80 of 90
SQL interview 3: finding and deleting duplicates
find duplicate rowsGROUP BY ... HAVING COUNT(*) > 1delete duplicates keeping oneROW_NUMBER deduprowid/MIN(id) trickduplicate emailsdistinct pairs (a,b) vs (b,a)