Hexaware Technologies uses RapidX workflows to support client onboarding and data quality checks. Duplicate contact records can cause repeated notifications, inaccurate reporting, and inconsistent ownership assignments.
Write a PostgreSQL query to identify all contact records that belong to a duplicate email group. Treat email values as duplicates when they match after trimming whitespace and converting them to lowercase.
email is NULL from duplicate detection.contact_id ascending.| Column | Type | Description |
|---|---|---|
| contact_idPK | INT | Unique contact identifier |
| full_name | VARCHAR(100) | Contact's full name |
| VARCHAR(255) | Contact email address | |
| business_unit_id | INT | Associated business unit identifier |
| created_at | DATE | Date the contact was created |
| Column | Type | Description |
|---|---|---|
| business_unit_idPK | INT | Unique business unit identifier |
| unit_name | VARCHAR(100) | Business unit name |