Skip to content

Agents who got no urgent ticket in April

EasyFreeRows with no matchNULL handlingDates and time9 min2 hidden datasets

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.

intUnique id.
textName.
textbilling, technical or general.
dateStart day.
tickets900 rows in the sample

One row per ticket. Key: ticket_id.

intUnique id.
intWho opened it.
intAssigned agent. NULL if never assigned.
textemail, chat or phone.
textlow, normal, high or urgent.
textbilling, bug, how_to or account.
timestampOpened (UTC).
timestampFirst reply from an agent. NULL if none yet.
timestampClosed as solved. NULL while open.
satisfaction366 rows in the sample

Survey answers, at most one per ticket. Key: ticket_id.

intThe ticket.
int1 (very unhappy) to 5 (very happy).
timestampWhen answered (UTC).

Related questions

Loading the editor and PostgreSQL