Write a SQL query to identify duplicate consumer profiles based on partial name and location matches.
Normalize names by ignoring case and non alphabetic characters. Profiles with NULL name components or a NULL location_id must be ignored.
profile_id_1, profile_id_2, profile_name_1, profile_name_2, city, and state.profile_id_1, then profile_id_2.| Column | Type | Description |
|---|---|---|
| profile_idPK | INTEGER | Unique consumer profile identifier |
| first_name | VARCHAR(100) | Consumer first name |
| last_name | VARCHAR(100) | Consumer last name |
| location_id | INTEGER | Reference to the consumer location |
| Column | Type | Description |
|---|---|---|
| location_idPK | INTEGER | Unique location identifier |
| city | VARCHAR(100) | City name |
| state | VARCHAR(2) | Two-letter state code |