Clinical Trials & Research Analytics Path · Mission 5 of 25Easy

Adverse events by severity grade

Group on a numeric severity scale. Practice GROUP BY on an INTEGER grade column, COUNT(*) per bucket, and the framing of CTCAE severity distribution — the headline metric on every safety review.

The Brief

Marcus WebbDrug Safety Analystslack-dm

Pharmacovigilance review tomorrow. From fact_adverse_events, give me the count of events at each CTCAE severity grade — severity and ae_count, sorted by severity ascending so grade 1 (mild) lands at the top and grade 5 (death) at the bottom. The slide template wants exactly that shape; the safety committee reads down the column to spot any unexpected concentration at grade 3+. CTCAE v5 is the standard scale: 1 = mild, 2 = moderate, 3 = severe, 4 = life-threatening, 5 = death.

You'll practice

GROUP BYCTCAE severityORDER BY ASC

Tables & columns available

fact_adverse_eventsfact8 columns
ColumnTypeKey
ae_idINTPK
enrollment_idINTFK → fact_enrollments
event_dateTEXT
meddra_termTEXT
severityINT
serious_flagINT
related_to_interventionTEXT
outcomeTEXT

Hints (3)

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

Hint 1

Single-table aggregate. fact_adverse_events covers every recorded AE; no WHERE clause needed for this report.

Hint 2

Group on the integer severity column. Don't filter on serious_flag or related_to_intervention by accident — those are different dimensions.

Hint 3

Two output columns: the grade and a row count. Sort ascending so grade 1 (mild) lands at the top, grade 5 (death) at the bottom.