How would you handle a situation where a key dashboard shows a discrepancy between two different source systems at Crusoe?
For the SQL portion, write a query that compares the two provided source tables at the resource and date level. Return every missing or mismatched record, including the values available in each source.
report_date, resource_id, source_a_value, source_b_value, difference, and discrepancy_typereport_date, then resource_id| Column | Type | Description |
|---|---|---|
| metric_datePK | DATE | Date associated with the metric |
| resource_idPK | VARCHAR(50) | Resource identifier |
| metric_value | NUMERIC(12,2) | Metric value reported by source A |
| Column | Type | Description |
|---|---|---|
| metric_datePK | DATE | Date associated with the metric |
| resource_idPK | VARCHAR(50) | Resource identifier |
| metric_value | NUMERIC(12,2) | Metric value reported by source B |