Your question is Strictly Increasing Prices Query. Start with the requirements and the two tables on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
Nielsen pricing analysts want to identify products with consistently rising observed prices in the Nielsen product catalog. Write a PostgreSQL query that returns product names whose non-null monthly prices strictly increase over time.
| Column | Type | Description |
|---|---|---|
| product_idPK | INT | Unique Nielsen product identifier |
| product_name | VARCHAR(150) | Nielsen product name |
| category | VARCHAR(80) | Product category |
| Column | Type | Description |
|---|---|---|
| price_idPK | INT | Unique pricing record identifier |
| product_id | INT | Referenced Nielsen product identifier |
| month_start | DATE | First day of the pricing month |
| price | NUMERIC(10,2) | Observed product price |