What is your approach to ensuring data quality in your analyses?
Using the supplied customers and measurements tables, audit every measurement record. Flag missing or unmatched customers, missing or future dates, null or negative metric values, missing source systems, and duplicate customer-date measurements.
measurement_id, customer_name, issue_count, issue_details, and quality_status.measurement_id ascending. Use valid when no issues exist and invalid otherwise.DATE '2026-10-26' as today's date.measured_at equal to today's date and metric_value equal to 0 as non-future and non-negative, respectively.source_system values as missing.customer_id and measured_at values.customer_name as NULL and issue_details as an empty string when no issues apply.| Column | Type | Description |
|---|---|---|
| customer_idPK | INT | Unique customer identifier |
| customer_name | VARCHAR(100) | Customer display name |
| Column | Type | Description |
|---|---|---|
| measurement_idPK | INT | Unique measurement identifier |
| customer_id | INT | Customer associated with the measurement |
| measured_at | DATE | Date on which the measurement was recorded |
| metric_value | DECIMAL(10,2) | Recorded metric value |
| source_system | VARCHAR(50) | System that supplied the measurement |