Dataford
Interview QuestionsInterview GuidesExperiencesMock InterviewsPricing
Get started
SQL for Regional Ops Performance
00:00
5 left

SQL for Regional Ops Performance

MediumSQL · PostgreSQL

Problem

Write a SQL query to analyze operational performance by region at Wise, joining transactions and support cases to calculate volume, resolution rate, and average handling time. Use all available records, including regions present in only one table. Treat unresolved cases as having no handling time.

Output

  1. One row per region, including Unknown for NULL regions.
  2. Return region, transaction_volume, support_case_volume, resolution_rate_pct, and avg_handling_hours.
  3. Sort by transaction_volume descending, then region ascending.

Schema

transactions
ColumnTypeDescription
transaction_idPKINTUnique Wise transaction identifier
regionVARCHAR(50)Operational region associated with the transaction
transaction_dateDATEDate the transaction was initiated
support_cases
ColumnTypeDescription
case_idPKINTUnique support case identifier
transaction_idINTRelated transaction identifier when a case concerns a transaction
regionVARCHAR(50)Operational region associated with the support case
statusVARCHAR(20)Current case status
created_atTIMESTAMPTimestamp when the case was created
resolved_atTIMESTAMPTimestamp when the case was resolved
Tablestransactionssupport_cases
Interviewer

Your question is SQL for Regional Ops Performance. Start with the requirements and the two tables in the Question tab.

Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.

You need to log in / sign up to run or submit.
CodePostgreSQL
You need to log in / sign up to run or submit.Ln 1
Run your query to see results here.