Samsung Electronics America wants to identify the strongest product categories in each sales region. Write a SQL query to find the top three categories by units sold during the previous completed calendar quarter.
region, category, total_units_sold, and category_rank.| Column | Type | Description |
|---|---|---|
| sale_idPK | INT | Unique sales transaction identifier |
| product_id | INT | Product sold in the transaction |
| region | VARCHAR(50) | Samsung Electronics America sales region |
| quantity | INT | Number of units sold |
| sale_date | DATE | Date of the sale |
| Column | Type | Description |
|---|---|---|
| product_idPK | INT | Unique product identifier |
| product_name | VARCHAR(100) | Samsung product name |
| category | VARCHAR(50) | Product category used for reporting |