ClickHouse/tests/queries/0_stateless/01921_with_fill_with_totals.sql

18 lines
295 B
SQL

SELECT
number,
sum(number)
FROM numbers(10)
WHERE number % 3 = 1
GROUP BY number
WITH TOTALS
ORDER BY number DESC WITH FILL FROM 15;
SELECT
number,
sum(number)
FROM numbers(10)
WHERE number % 3 = 1
GROUP BY number
WITH TOTALS
ORDER BY 10, number DESC WITH FILL FROM 15;