Payer Claims & Appeals Analytics Path · Mission 5 of 25Easy

Denied claims this quarter

Scalar aggregate (single COUNT(*)) with a compound WHERE filter on a status enum and a date range. Practice two-condition WHERE clauses, inclusive date-range filters on YYYY-MM-DD strings, and the headline-number scalar query shape.

The Brief

Yara OkaforDenials Managerslack-dm

Denials operations review is tomorrow morning and I need the headline number first. From fact_claims, give me the count of claims that were denied with a service_date in Q4 2025 (October, November, and December 2025, inclusive). One number out — denied_q4. The status column uses lowercase 'denied'. This is the metric the VP opens the meeting with; the breakdowns by reason and provider come later in the deck, but if I get the top-line number wrong everything downstream is suspect.

You'll practice

Date range filterINNER JOINCOUNT(*)

Tables & columns available

fact_claimsfact11 columns
ColumnTypeKey
claim_idINTPK
member_idINTFK → dim_members
provider_idINTFK → dim_providers_payer
plan_idINTFK → dim_plans
service_dateTEXT
cpt_codeTEXT
place_of_serviceTEXT
billed_amtREAL
allowed_amtREAL
paid_amtREAL
statusTEXT

Hints (3)

Each hint you reveal reduces the XP you can earn. Try the query first.

Hint 1

Scalar aggregate: a single COUNT(*) with no GROUP BY. The output is one row, one column — that's the headline-number shape.

Hint 2

Two filter conditions joined with AND: a status equality on the lowercase enum value, and a service_date range that covers October through December 2025 inclusive on both ends.

Hint 3

service_date is a YYYY-MM-DD string; lexicographic comparisons (>=, <=) are date-correct on that format. 'Inclusive on both ends' is the load-bearing word in the brief — pick comparison operators that don't quietly drop the last day of December.