mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 17:12:03 +00:00
4 lines
165 B
MySQL
4 lines
165 B
MySQL
|
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)
|