How would you handle missing data in a dataset?
Write a SQL query that returns every sales record while replacing missing product names and regions with Unknown Product and Unknown. Replace missing quantities and prices with 0 for reporting purposes.
sale_id, product_name, region, quantity, and unit_pricesale_id ascending| Column | Type | Description |
|---|---|---|
| sale_idPK | INT | Unique identifier for the sales record |
| product_name | VARCHAR(100) | Name of the purchased product |
| region | VARCHAR(50) | Sales region |
| quantity | INT | Number of units sold |
| unit_price | NUMERIC(10,2) | Price per unit |