Describe a time you had to clean a large, messy dataset to produce a high-stakes report. What was your process?
Using the supplied tables, write a query that produces a cleaned regional report. Exclude records with missing dates, non-positive amounts, non-completed statuses, or stores absent from the directory.
region, valid_transaction_count, total_sales, average_sale, and invalid_record_countregion ascending| Column | Type | Description |
|---|---|---|
| record_idPK | INT | Unique raw sales record identifier |
| store_code | VARCHAR(10) | Store identifier supplied by the source system |
| sale_date | DATE | Date on which the sale was recorded |
| amount | DECIMAL(12,2) | Reported sale amount |
| status | VARCHAR(30) | Raw transaction status |
| customer_email | VARCHAR(150) | Customer email captured with the record |
| Column | Type | Description |
|---|---|---|
| store_codePK | VARCHAR(10) | Official store identifier |
| region | VARCHAR(40) | Reporting region for the store |