Data Cleaning Reps

← All exercises

Events per million residents

Advancedmulti-table JOINEarthquakes (USGS, Oct 2026)

For states with at least 5 matched events (as in the previous exercise), return name, event count and events per million residents (pop2024), rounded to 2 decimals. Sort by the rate, highest first.

Hint

Build the per-state counts in a CTE, then join to state_population on name (state rows only).

Same question in Excel / Google Sheets

Build the per-state counts (previous exercise), XLOOKUP pop2024 by name, divide.

Download the CSV from the datasets page. Column letters assume the CSV opens with its header in row 1.

Tip: Ctrl+Enter (⌘+Enter on Mac) checks your answer. Everything runs in your browser; nothing you type is sent anywhere.

← Match earthquakes to US statesPopulation by Census region →