Customer support desk
Tickets for a software company: who handled them, how fast, and what customers said afterwards. February to June 2025.
agents
Support agents. Key: agent_id. 14 rows in the larger version, 7 in the smaller.
| agent_id | int | Unique id. |
| full_name | text | Name. |
| team | text | billing, technical or general. |
| hired_on | date | Start day. |
tickets
One row per ticket. Key: ticket_id. 900 rows in the larger version, 320 in the smaller.
| ticket_id | int | Unique id. |
| customer_id | int | Who opened it. |
| agent_id | int, nullable | Assigned agent. NULL if never assigned. |
| channel | text | email, chat or phone. |
| priority | text | low, normal, high or urgent. |
| category | text | billing, bug, how_to or account. |
| created_at | timestamp | Opened (UTC). |
| first_response_at | timestamp, nullable | First reply from an agent. NULL if none yet. |
| resolved_at | timestamp, nullable | Closed as solved. NULL while open. |
satisfaction
Survey answers, at most one per ticket. Key: ticket_id. 366 rows in the larger version, 122 in the smaller.
| ticket_id | int | The ticket. |
| score | int | 1 (very unhappy) to 5 (very happy). |
| submitted_at | timestamp | When answered (UTC). |
Questions on this database
- First response times by priorityThe support lead wants a response-time summary for each ticket priority, using every row in tickets.
- Categories behind each agent's unhappy surveysThe support manager is preparing one-to-one meetings. For each agent she wants to see which ticket categories ended in an unhappy customer.
- Resolution speed buckets and satisfactionThe support lead wants to know whether slow resolutions make customers unhappy.
- Urgent email and phone tickets by team, with unassignedThe support lead reviews urgent tickets that came in by email or phone (priority = 'urgent' and channel is 'email' or 'phone') and how happy customers were.
- Tickets per response band from a band lookup tableThe support team reports how fast it answers. The response time of a ticket is the time from created_at to first_response_at, in minutes (fractions allowed).
- Three slowest first responses in each channelThe support lead is reviewing the slowest first replies.
- Top two agents per team by satisfaction, with tie-breakersThe support lead wants to recognise the two happiest-making agents in each team. Use the surveys in satisfaction joined to their ticket's agent_id.
- Repeat contact within 14 days of a first ticketThe support lead suspects some first-time issues are not really solved, because the customer comes back.
- Hours since the customer's previous ticketThe support lead wants to know how quickly customers come back.
- Agent share of their team's ticketsThe support lead wants to see how evenly work is spread inside each team.
- Ticket categories with an above-average urgent shareThe support lead wants to know which ticket categories are more urgent than the desk as a whole.
- Survey response rate and CSAT by teamThe support lead tracks two numbers for every team, and they have different denominators.
- First-response SLA by agentThe support lead scores agents on first-response speed.
- Weekly ticket volume, weeks starting MondayThe support lead reports ticket volume per week for March 2025. Count the tickets created from 2025-03-01 00:00:00 up to and including the whole of 2025-03-31.
- First response within one hour, by channelThe support desk promises a first reply within one hour.
- Average satisfaction score by channelThe support lead wants the average satisfaction score by channel.
- Tickets by first response time bandThe support lead wants to see how long customers wait for a first reply.
- Tickets per agent, including unassigned onesThe support lead wants the workload on one list: how many tickets each agent has, how many are waiting with no agent at all, and which agents have nothing.
- Week-over-week high-priority ticketsThe support lead watches how many serious tickets arrive each week. A serious ticket has priority of high or urgent.
- Repeat tickets from the same customer within a weekThe support lead suspects some customers write in again because their first ticket was not solved. Find tickets that look like repeats.
- Agents who got no urgent ticket in AprilThe support manager wants to know which agents were not given any urgent work in April 2025.
- Repeat tickets from the same customerSupport managers count one problem once.
- Agent by month fact table of tickets created and resolvedSupport leaders want a monthly scorecard at the grain one row per agent per calendar month, for February to June 2025.