How do you approach data validation and cleaning?
Use the provided orders and customers tables to demonstrate the approach with SQL. Return every order, normalize customer email values, and identify records with missing or invalid data.
order_id, order_reference, cleaned_email, amount, validation_status, and issue_countvalidation_status equal to valid or invalidorder_id ascending| Column | Type | Description |
|---|---|---|
| order_idPK | INT | Unique order identifier |
| order_reference | VARCHAR(20) | External order reference |
| customer_id | INT | Referenced customer identifier |
| amount | NUMERIC(10,2) | Order amount |
| order_date | DATE | Date the order was placed |
| Column | Type | Description |
|---|---|---|
| customer_idPK | INT | Unique customer identifier |
| customer_name | VARCHAR(100) | Customer display name |
| VARCHAR(255) | Customer email address |