Tell me about your experience using SQL commands and Python for data cleaning.
For the SQL portion, write a PostgreSQL query that standardizes names, emails, and phone numbers, removes invalid or unsupported email records, handles missing phone values, and keeps the most recently updated record for duplicate emails.
record_id, cleaned_name, cleaned_email, cleaned_phone, and updated_at.cleaned_email, then record_id.| Column | Type | Description |
|---|---|---|
| record_idPK | INT | Unique raw record identifier |
| full_name | VARCHAR(150) | Unstandardized person name |
| VARCHAR(255) | Raw email address | |
| phone | VARCHAR(40) | Raw phone number |
| updated_at | TIMESTAMP | Timestamp of the source record update |
| Column | Type | Description |
|---|---|---|
| domainPK | VARCHAR(120) | Supported lowercase email domain |
| domain_label | VARCHAR(120) | Readable domain description |