ClickHouse/tests/queries/0_stateless/02364_window_case.sql
2022-12-13 12:48:14 +01:00

5 lines
93 B
SQL

SELECT CASE
WHEN sum(number) over () > 0 THEN number + 1
ELSE 0 END
FROM numbers(10)