Interview practice question
Finding duplicate records
Data Engineering · SQL · Beginner
How would you find duplicate customers by email in a customers table?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- GROUP BY email with HAVING COUNT(*) > 1 lists duplicated emails.
- Normalize first, like LOWER and TRIM.
- Use a window COUNT to see full duplicate rows.
- Decide which record to keep with ROW_NUMBER.
- Exclude NULL emails from the check.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.