How do you ensure data quality and integrity across distributed data sources?
Write a PostgreSQL query that compares Charles Schwab's customer master records with records received from multiple source systems. Identify missing records, duplicate source records, conflicting attributes, and incomplete values.
customer_id, master_name, source_names, source_statuses, issue_count, and issue_summary.customer_id ascending.| Column | Type | Description |
|---|---|---|
| customer_idPK | INT | Canonical customer identifier |
| full_name | VARCHAR(100) | Canonical customer name |
| status | VARCHAR(20) | Canonical customer status |
| Column | Type | Description |
|---|---|---|
| source_record_idPK | INT | Source record identifier |
| customer_id | INT | Customer identifier supplied by a source system |
| source_system | VARCHAR(30) | Originating source system |
| source_full_name | VARCHAR(100) | Customer name supplied by the source |
| source_status | VARCHAR(20) | Customer status supplied by the source |