ClickHouse/tests/queries/0_stateless/01655_window_functions_null.sql

4 lines
165 B
SQL

SELECT
number,
sum(number) OVER (ORDER BY number ASC RANGE BETWEEN CURRENT ROW AND 1 FOLLOWING) AS sum
FROM values('number Nullable(Int8)', 1, 1, 2, 3, NULL)