Your question is Find Users Missing Follow-Up Action. 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.
At StreamForge, product analysts want to identify users who completed action A but did not complete action B within the next 24 hours. Write a PostgreSQL query to return those users.
A event independently.A event with no corresponding B event from the same user in the next 24 hours.A event.a_timestamp ascending, then user_id ascending.| Column | Type | Description |
|---|---|---|
| user_idPK | INT | Unique user identifier |
| user_name | VARCHAR(100) | User display name |
| signup_date | DATE | Date the user signed up |
| Column | Type | Description |
|---|---|---|
| event_idPK | INT | Unique event identifier |
| user_id | INT | User who performed the event |
| action_type | VARCHAR(10) | Event type such as A, B, or other actions |
| event_time | TIMESTAMP | Timestamp when the event occurred |