-
Notifications
You must be signed in to change notification settings - Fork 664
Group By
agershun edited this page Jan 17, 2015
·
7 revisions
Grouping by columns:
var res = alasql('SELECT * FROM City GROUP BY Contient, Country');
Grouping by expressions:
var res = alasql('SELECT b FROM Nums GROUP BY a%2');
- CUBE()
- ROLLUP()
- GROUPING SETS()
alasql('SELECT * FROM City GROUP BY ROLLUP(Continent, Country)');
See jsFiddle example for ROLLUP(), CUBE(), and GROUPING SETS().
© 2014-2024, Andrey Gershun & Mathias Rangel Wulff
Please help improve the documentation by opening a PR on the wiki repo