mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-09 16:02:23 +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) |