How do you ensure data integrity in your analysis at Faire?
Use the provided Faire order, order-line, and payment data to identify orders with inconsistent or missing financial records. Return only orders requiring investigation.
order_id, order_total, line_total, completed_payment_total, and integrity_status.order_id ascending.| Column | Type | Description |
|---|---|---|
| order_idPK | INT | Unique Faire order identifier |
| retailer_id | INT | Retailer associated with the order |
| order_total | DECIMAL(10,2) | Stored total amount for the order |
| order_status | VARCHAR(20) | Current order status |
| order_date | DATE | Date the order was created |
| Column | Type | Description |
|---|---|---|
| line_idPK | INT | Unique order-line identifier |
| order_id | INT | Referenced order identifier |
| quantity | INT | Units purchased |
| unit_price | DECIMAL(10,2) | Price per unit |
| Column | Type | Description |
|---|---|---|
| payment_idPK | INT | Unique payment identifier |
| order_id | INT | Referenced order identifier |
| paid_amount | DECIMAL(10,2) | Payment amount |
| payment_status | VARCHAR(20) | Payment processing status |