Your question is SQL Duplicate Detection. Start with the requirements and the one table on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
Euronet Worldwide needs to identify duplicate customer profiles in its customer master table before downstream payment and transfer workflows use the wrong record. Write a SQL query to find all duplicated profiles based on the same first name, last name, and date of birth.
duplicate_count showing how many rows share that profile.duplicate_count descending, then by name.| Column | Type | Description |
|---|---|---|
| customer_idPK | INT | Primary key for the profile record |
| first_name | VARCHAR(100) | Customer first name |
| last_name | VARCHAR(100) | Customer last name |
| date_of_birth | DATE | Customer date of birth |
| VARCHAR(255) | Contact email, may be NULL | |
| created_at | TIMESTAMP | Record creation timestamp |