Healthcare Analytics Path · Mission 8 of 25Easy

ED wait time overview

Use WHERE to filter by metric type and calculate aggregate statistics

Back to Healthcare Analytics

The Brief

Rita VasquezDirector of Patient Experiencepatient-experience

Hi! I just got off a call with a patient family who waited 4 hours in the ED last Tuesday. Can you pull the average, minimum, and maximum ED wait times from our quality metrics? I want to bring data to the nursing leadership meeting tomorrow, not just anecdotes.

You'll practice

AVGMINMAXWHERE

Tables available

fact_quality_metrics

Hints (3)

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

Hint 1

ED wait times live in `fact_quality_metrics` under one specific metric_type. Everything else is the wrong metric

Hint 2

Three aggregates in a single SELECT, filtered to the right metric type. No GROUP BY — it's one summary row

Hint 3

`SELECT ___(metric_value) AS avg_wait, ___(metric_value) AS min_wait, ___(metric_value) AS max_wait FROM fact_quality_metrics WHERE metric_type = ___`