Data Cleaning Reps

← All exercises

Events per day

Intermediatesubstr, dates as textEarthquakes (USGS, Oct 2026)

Return each date (YYYY-MM-DD) and the number of events on that date (UTC), in date order.

Hint

substr(time, 1, 10) cuts the date part off the timestamp.

Same question in Excel / Google Sheets

Add a helper column =LEFT(B2,10), then pivot on it.

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.

← California, spelled two waysBucket magnitudes into bands →