Find the rows with a missing place
BeginnerIS NULLEarthquakes (USGS, Oct 2026)
Return the id, time and mag of every row where place is missing.
Solution
SELECT id, time, mag FROM quakes WHERE place IS NULL;Expected output:
Hint
You can't test NULL with = NULL. Use IS NULL.
Same question in Excel / Google Sheets
Filter the place column to (Blanks).
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.