← All SQL interview questions
Duplicate support tickets from the same customer
MediumGROUP BYZomatoTarget
Support wants to merge duplicate tickets. A duplicate is the same customer raising the same issue category more than once on the same day.
From support_tickets, return customer_code, issue_category, raised_on and ticket_count for every such duplicated combination.
Sample data
More GROUP BY questions
Practising alone only goes so far — our live cohorts pair SQL depth with dashboards, agentic analytics projects and mock interviews.
Explore the program