ClickHouse/tests/queries/0_stateless/02233_with_total_empty_chunk.sql
2022-03-10 23:27:36 +08:00

2 lines
131 B
SQL

SELECT (NULL, NULL, NULL, NULL, NULL, NULL, NULL) FROM numbers(0) GROUP BY number WITH TOTALS HAVING sum(number) <= arrayJoin([]);