tsql icon indicating copy to clipboard operation
tsql copied to clipboard

Investigate possible support for GROUPING SETS

Open AnyhowStep opened this issue 5 years ago • 2 comments
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.

AnyhowStep avatar Jan 27 '20 16:01 AnyhowStep

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.

AnyhowStep avatar Jan 27 '20 16:01 AnyhowStep

Related, https://github.com/AnyhowStep/tsql/issues/154

AnyhowStep avatar Jan 27 '20 16:01 AnyhowStep