tsql
tsql copied to clipboard
Investigate possible support for GROUPING SETS
trafficstars
https://www.sqlservertutorial.net/sql-server-basics/sql-server-grouping-sets/
It can be emulated with UNION ALL, since MySQL 5.7 and SQLite 3.30 do not support it.
Special care should be taken regarding the GROUPING() function, if choosing to emulate.
When using grouping sets, columns not in the pairwise intersection of the grouping sets are nullable.
For example, given GROUPING SETS ((id, a), (id, b)),
a and b are nullable.
Related, https://github.com/AnyhowStep/tsql/issues/154