Sections
725 pages · SQL · ETL · JavaScript
Guides and worked solutions across languages, data and finance.
Guides · SQL · 15 Apr 2021
Collapses rows that share a value into one summary row each, usually alongside an aggregate.
SELECT COUNT(CustomerID), Country FROM Customers GROUP BY Country ORDER BY COUNT(CustomerID) DESC;