What is your experience with SQL for backend validation?
Using the provided orders and backend_validation_results tables, write a query that identifies records where backend data is missing, unexpectedly present, or differs from the stored order data. Treat two NULL values as equal.
order_id, db_status, backend_status, db_total, backend_total, and validation_result.order_id ascending.| Column | Type | Description |
|---|---|---|
| order_idPK | INT | Stored order identifier |
| status | VARCHAR(20) | Order status in the database |
| total_amount | NUMERIC(10,2) | Stored order total |
| Column | Type | Description |
|---|---|---|
| order_idPK | INT | Order identifier returned by the backend |
| status | VARCHAR(20) | Order status returned by the backend |
| total_amount | NUMERIC(10,2) | Order total returned by the backend |