Xiaomi Operations needs to evaluate the regional performance of the Xiaomi 15 product launch. Write a PostgreSQL query that calculates the percentage of exposed users who purchased the launched product during the launch window.
Xiaomi 15 launch and exposures within its launch window.Unknown.region, exposed_users, converted_users, and conversion_rate, in that order.region ascending.conversion_rate as a percentage by multiplying the converted-user proportion by 100.| Column | Type | Description |
|---|---|---|
| launch_idPK | INT | Unique product launch identifier |
| product_id | INT | Product identifier |
| product_name | VARCHAR(100) | Product name |
| launch_start | TIMESTAMP | Inclusive start of the launch window |
| launch_end | TIMESTAMP | Exclusive end of the launch window |
| Column | Type | Description |
|---|---|---|
| exposure_idPK | INT | Unique exposure identifier |
| launch_id | INT | References product_launches.launch_id |
| user_id | INT | User exposed to the launch |
| region | VARCHAR(50) | User region |
| exposed_at | TIMESTAMP | Time of product exposure |
| Column | Type | Description |
|---|---|---|
| purchase_idPK | INT | Unique purchase identifier |
| user_id | INT | User who made the purchase |
| product_id | INT | Purchased product identifier |
| purchased_at | TIMESTAMP | Purchase timestamp |