Provider Analytics Path · Mission 3 of 30Starter

Total encounter volume

Use COUNT to aggregate rows in a fact table

Back to Provider Analytics

The Brief

James HartwellVP of Operationsslack-dm

quick — how many total encounters do we have on record? just one number. board wants volume stats by noon.

You'll practice

COUNTAggregation

Tables & columns available

fact_encountersfact10 columns
ColumnTypeKey
encounter_idINTPK
patient_idINTFK → dim_patients
provider_idINTFK → dim_providers
department_idINTFK → dim_departments
admit_dateTEXT
discharge_dateTEXT
diagnosis_codeTEXT
diagnosis_descriptionTEXT
encounter_typeTEXT
discharge_dispositionTEXT

Hints (3)

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

Hint 1

Whole-table aggregate — one summary row over the encounter fact table.

Hint 2

COUNT over every row. No GROUP BY, no WHERE.

Hint 3

COUNT(*) tallies every row including those with NULL columns; COUNT(column) would skip NULLs. Pick the one that answers 'how many encounters'.