Aetna Claim Denial Rate With Month Over Month Change

Last updated: November 29, 2026

Quick Overview

From medical_claims (claim_id, plan_type, received_date, status) compute the monthly denial rate per plan type and the percentage point change from the previous month.

CVS Health
Data Manipulation (SQL/Python)
Data Scientist
CVS Health
November 29, 2026
Data Scientist
Phone Screen
Data Manipulation (SQL/Python)
Easy

0

0

0 solved


From medical_claims (claim_id, plan_type, received_date, status) compute the monthly denial rate per plan type and the percentage point change from the previous month.

Aetna operations and provider relations teams watch denial rates by plan type (Commercial, Medicare Advantage, Medicaid) because spikes signal policy changes or system errors. This checks conditional aggregation plus LAG over an aggregated series.

What the Interviewer Expects
  • Uses conditional aggregation for the denial rate
  • Aggregates to month and plan before applying LAG
  • Reports change in percentage points, not percent of percent
  • Excludes claims still pending from the denominator or explains the choice
Key Topics to Cover
conditional aggregation
LAG
DATE_TRUNC
rates
percentage points
How to Approach This
  1. Clarify the schema and expected output format before writing queries.
  2. Use CTEs (WITH clauses) to break complex queries into readable steps.
  3. Consider window functions (ROW_NUMBER, RANK, LAG, LEAD) for ranking and sequential analysis.
  4. Watch for NULLs, duplicates, and edge cases in JOINs and GROUP BY.
  5. For pandas, prefer vectorized operations over row-by-row iteration.
Possible Follow-up Questions
  • How would you flag months where the change is unusually large for that plan?
  • Why might the most recent month's rate look artificially low?
  • How would you attribute a spike to specific denial reason codes?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice SQL Problems
Sample Answer
Clarify the Data

medical_claims(claim_id, plan_type, received_date, status) with status in PAID, DENIED, PENDED. One row per claim (assume the latest adjudication status). Denial rate = denied / adjudicated (paid + ...

Approach

Aggregate per month and plan with SUM(CASE ...). Then in an outer query, LAG(denial_rate) partitioned by plan ordered by month. Applying LAG after aggregation is the key: lagging raw rows would co...


Submit Your Answer
Markdown supported

Related Questions