Dataford
Interview QuestionsInterview GuidesExperiencesMock InterviewsPricing
Get started

Monthly Claims Trend and Anomaly Detection

HardSQL · PostgreSQL00:00
Practice interviewer
In session
5 left
00:00

Your question is Monthly Claims Trend and Anomaly Detection. Start with the requirements and the three tables on the right.

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.

Problem

Analyze monthly claim payment trends in Global Healthcare Exchange data and identify provider-month anomalies in Q1 2024. Your query should keep months with no approved claims, summarize approved activity by provider and month, compute each provider's average monthly paid amount across the quarter, and classify each month as Anomaly or Normal using a 20% threshold from that average.

Schema

ghe_providers
ColumnTypeDescription
provider_id
provider_name
ghe_claims
ColumnTypeDescription
claim_id
provider_id
member_id
claim_date
status
paid_amount
ghe_calendar_months
ColumnTypeDescription
month_start
month_label
Tablesghe_providersghe_claimsghe_calendar_months
Your solutionPostgreSQL
You need to log in / sign up to run or submit.
Run a query to see results