ClickHouse/tests/queries/0_stateless/01548_with_totals_having.sql
nikitamikhaylov aceb82ae6a better
2020-11-05 19:00:05 +03:00

3 lines
250 B
SQL

SELECT * FROM numbers(4) GROUP BY number WITH TOTALS HAVING sum(number) <= arrayJoin([]); -- { serverError 44 }
SELECT * FROM numbers(4) GROUP BY number WITH TOTALS HAVING sum(number) <= arrayJoin([3, 2, 1, 0]) ORDER BY number; -- { serverError 44 }