ClickHouse/tests/queries/0_stateless/02364_window_case.sql

5 lines
93 B
MySQL
Raw Normal View History

2022-07-17 23:12:37 +00:00
SELECT CASE
WHEN sum(number) over () > 0 THEN number + 1
ELSE 0 END
FROM numbers(10)