mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 08:32:02 +00:00
4 lines
165 B
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) |