Back to questions

Patient Support Analysis (Part 4) UnitedHealth SQL Interview Question

Patient Support Analysis (Part 4)

UnitedHealth SQL Interview Question

UnitedHealth Group (UHG) has a program called Advocate4Me, which allows policy holders (or, members) to call an advocate and receive support for their health care needs – whether that's claims and benefits support, drug coverage, pre- and post-authorisation, medical records, emergency assistance, or member portal services.

To analyze the performance of the program, write a query to determine the month-over-month growth rate specifically for long-calls. A long-call is defined as any call lasting more than 5 minutes (300 seconds).

Output the year and month in numerical format and chronological order, along with the growth percentage rounded to 1 decimal place.

Table:

Column NameType
policy_holder_idinteger
case_idvarchar
call_categoryvarchar
call_datetimestamp
call_duration_secsinteger

Example Input:

policy_holder_idcase_idcall_categorycall_datecall_duration_secs
1f1d012f9-9d02-4966-a968-bf6c5bc9a9feemergency assistance04/13/2023 19:16:53144
141ce8fb6-1ddd-4f50-ac31-07bfcce6aaabauthorisation05/25/2023 09:09:30815
28471a3d4-6fc7-4bb2-9fc7-4583e3638a9eemergency assistance03/09/2023 10:58:54128
238208fae-bad0-49bf-99aa-7842ba2e37bcbenefits06/05/2023 07:35:43619
3f0e7a8e3-df93-40f3-9b5e-fadff9ebe072provider network01/12/2023 04:53:41483
3b72f91e6-c3f8-4358-a1f2-c9507e8dcba4member portal04/04/2023 20:03:22275
33acbe22d-22b3-4144-954d-74c127bc49eabenefits04/12/2023 00:05:29329
3e32b61c2-a90d-4371-a5ee-6bc44fa49bbdbenefits05/25/2023 06:07:41512
36099f469-b5d6-4447-9acf-d936355eae7cemergency assistance06/11/2023 12:04:2133

Example Output:

yrmthlong_calls_growth_pct
20231NULL
202320.0
20232100.0
20234200.0
20235-33.3
202360.0

Explanation:

Call counts: Jan - 1 call; Feb - 0 call; Mar - 1 call; Apr - 3 calls; May - 2 calls; Jun - 2 calls

  • January: With no previous month's call information, the growth percentage is shown as NULL.
  • February: The absence of calls compared to January results in a 0.0% growth rate.
  • March: Witnessing an increase of 1 call compared to February, the growth percentage is +100.0%.
  • April: Experiencing a surge of 3 calls compared to March, the growth percentage is +200.0%.
  • May: With a decrease of 1 call compared to April, the growth percentage is -33.3%.
  • June: Maintaining the same number of calls as May, the growth percentage remains at 0.0%.

The dataset you are querying against may have different input & output - this is just an example!

Input

Output