Live SQLite 3.54 Sandbox
SQL COUNT, SUM & AVG Aggregates (with live sandbox)
Aggregate functions summarize thousands of rows into KPIs like total revenue, order count, and average order value.
Syntax
SELECT COUNT(*) AS orders_count, SUM(amount) AS total_rev, AVG(amount) AS avg_order FROM orders;Calculate total COUNT(*) AS orders_count and SUM(amount) AS total_rev from orders.
SQLite 3.50 SandboxCtrl/Cmd + Enter to Run (unlimited & ungraded)
Practise COUNT, SUM & AVG Aggregates in our free SQL track
Same streak & XP across Excel, Google Sheets, and SQL.
Free 1-Page Excel, Google Sheets & SQL Interview Cheat Sheet
The 25 formulas, keyboard shortcuts, and SQL patterns tested most in analyst interviews — emailed instantly, zero spam.