ClickHouse/dbms/tests/queries/0_stateless/00152_totals_in_subquery.sql

3 lines
144 B
MySQL
Raw Normal View History

2015-04-23 11:07:15 +00:00
SELECT count() FROM (SELECT dummy, sum(dummy) GROUP BY dummy WITH TOTALS);
SELECT * FROM (SELECT dummy, sum(dummy) GROUP BY dummy WITH TOTALS);