Agents who got no urgent ticket in April
The task
The support manager wants to know which agents were not given any urgent work in April 2025.
Find the agents hired on or before 2025-04-30 who were assigned no ticket with priority = 'urgent' created in April 2025. April runs from 2025-04-01 00:00 up to, not including, 2025-05-01 00:00. Tickets with no agent (agent_id is NULL) belong to nobody. Agents with no tickets at all in April are on the list.
Return agent_id, full_name and team, sorted by agent_id.
Expected output
agent_idfull_nameteam- Sorted by agent_id ascending.
- Checked on the sample and on 2 hidden datasets. How grading works
Tables Customer support desk · click a name to insert it
agents14 rows in the sample
Support agents. Key: agent_id.
| int | Unique id. | |
| text | Name. | |
| text | billing, technical or general. | |
| date | Start day. |
tickets900 rows in the sample
One row per ticket. Key: ticket_id.
| int | Unique id. | |
| int | Who opened it. | |
| int | Assigned agent. NULL if never assigned. | |
| text | email, chat or phone. | |
| text | low, normal, high or urgent. | |
| text | billing, bug, how_to or account. | |
| timestamp | Opened (UTC). | |
| timestamp | First reply from an agent. NULL if none yet. | |
| timestamp | Closed as solved. NULL while open. |
satisfaction366 rows in the sample
Survey answers, at most one per ticket. Key: ticket_id.
| int | The ticket. | |
| int | 1 (very unhappy) to 5 (very happy). | |
| timestamp | When answered (UTC). |
Related questions
- Accounts billed since May with no paid invoicemedium
- Campaigns that never brought in a paying usereasy
- Customers with no completed order in Marcheasy
- Customers with savings but no open checking accountmedium
- Listeners who played no jazz in Junemedium
- New riders with no completed trip in their first 14 dayshard
Loading the editor and PostgreSQL
Loading the editor and PostgreSQL