mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-18 20:32:43 +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)
|