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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
333 B
MySQL
Raw Normal View History

SELECT
number,
sum(number)
FROM numbers(10)
WHERE number % 3 = 1
GROUP BY number
WITH TOTALS
ORDER BY number DESC WITH FILL FROM 15;
2022-06-19 22:45:22 +00:00
SET enable_positional_arguments = 0;
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;