Fastest growth 2020→2024
Intermediatecalculated columnsState population estimates (U.S. Census Bureau, Vintage 2024)
For state-level rows, compute percent growth from pop2020 to pop2024, rounded to 2 decimals. Return the top 5: name and pct_growth.
Solution
SELECT name, ROUND((pop2024 - pop2020) * 100.0 / pop2020, 2) AS pct_growth
FROM state_population
WHERE sumlev = '040'
ORDER BY pct_growth DESC
LIMIT 5;Expected output:
Hint
Multiply by 100.0 (not 100) so SQLite does decimal math, not integer math.
Same question in Excel / Google Sheets
=ROUND((J2-F2)/F2*100,2), then sort.
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.