You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
createtablestudents (course TEXT, type TEXT);
insert into students
(course, type)
values
('CS', 'Bachelor'),
('CS', 'Bachelor'),
('CS', 'PhD'),
('Math', 'Masters'),
('CS', NULL),
('CS', NULL),
('Math', NULL);
-- without aliases the query works as expectedselectcount(*), course, type
from students
group by grouping sets((course, type), (type))
order by1, 2, 3;
-- with aliases no result is returnedselectcount(*), course AS crs, type AS tp
from students
group by grouping sets((crs, tp), (tp))
order by1, 2, 3;
Expected behavior
Expect the following result from both queries:
To Reproduce
Expected behavior
Expect the following result from both queries:
Software versions
The text was updated successfully, but these errors were encountered: