Walk me through how you would design a KPI dashboard for a new product launch.
Write a PostgreSQL query using the provided launch and event data to produce a 30-day KPI view for every launch.
product_id, product_name, launch_date, page_views, signups, activated_users, paying_users, revenue, and signup_rate.launch_date ascending, then product_id ascending.| Column | Type | Description |
|---|---|---|
| product_idPK | INT | Unique product launch identifier |
| product_name | VARCHAR(100) | Product name |
| launch_date | DATE | Product launch date |
| Column | Type | Description |
|---|---|---|
| event_idPK | INT | Unique event identifier |
| launch_id | INT | Product launch associated with the event |
| event_date | DATE | Date on which the event occurred |
| user_id | INT | User associated with the event |
| event_type | VARCHAR(50) | Event category such as page_view, signup, activation, or purchase |
| revenue | NUMERIC(12,2) | Revenue attributed to a purchase event |