Given a database schema for an e-commerce platform, write a SQL query to verify that order totals match the sum of individual line items. Return every order, including orders without line items, and identify whether its stored total matches the calculated amount.
order_id, order_total, line_items_total, difference, and verification_statusMATCH or MISMATCH for the verification statusorder_id ascending| Column | Type | Description |
|---|---|---|
| order_idPK | INT | Unique order identifier |
| order_total | NUMERIC(10,2) | Stored total amount for the order |
| order_status | VARCHAR(20) | Current order status |
| Column | Type | Description |
|---|---|---|
| order_item_idPK | INT | Unique line item identifier |
| order_id | INT | Order containing the line item |
| product_name | VARCHAR(100) | Product name |
| quantity | INT | Number of units purchased |
| unit_price | NUMERIC(10,2) | Price per unit |