How would you analyze a dataset with inconsistent formatting across multiple sources?
Using the source_records table, write a query that standardizes customer names, region values, and amount text while excluding records without a customer name. Preserve valid negative, zero, and missing amount values.
record_id ascending.record_id, source_system, customer_name, region, and amount using those exact names.| Column | Type | Description |
|---|---|---|
| record_idPK | INT | Unique source record identifier |
| source_system | VARCHAR(30) | System that supplied the record |
| raw_customer_name | VARCHAR(100) | Customer name as received from the source |
| raw_region | VARCHAR(50) | Region value as received from the source |
| raw_amount | VARCHAR(40) | Amount containing inconsistent currency formatting |