mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-19 14:11:58 +00:00
5 lines
93 B
MySQL
5 lines
93 B
MySQL
|
SELECT CASE
|
||
|
WHEN sum(number) over () > 0 THEN number + 1
|
||
|
ELSE 0 END
|
||
|
FROM numbers(10)
|