What techniques would you use for data cleaning, and how do INNER JOIN and LEFT JOIN differ?
For the SQL portion, clean the supplied customer and order records, retain customers without valid orders, and explain why the selected join preserves them.
customer_id, customer_name, cleaned_email, valid_order_count, and valid_order_total.customer_id ascending.customer_name; replace NULL or blank names with Unknown.@ occurs after the first character; otherwise output NULL.completed or paid.valid_order_total as 0 when no valid orders exist, while preserving monetary precision without additional rounding.| Column | Type | Description |
|---|---|---|
| customer_idPK | INT | Unique customer identifier |
| customer_name | VARCHAR(100) | Customer name, potentially containing extra whitespace |
| VARCHAR(255) | Customer email address, potentially inconsistent or blank |
| Column | Type | Description |
|---|---|---|
| order_idPK | INT | Unique order identifier |
| customer_id | INT | Customer associated with the order |
| amount | DECIMAL(10,2) | Order amount |
| status | VARCHAR(30) | Raw order status |