ClickHouse/tests/queries/0_stateless/01556_if_null.sql

6 lines
173 B
MySQL
Raw Normal View History

2020-11-04 15:29:43 +00:00
SELECT
sumMapIf([1], [1], nullIf(number, 3) > 0) AS col1,
countIf(1, nullIf(number, 3) > 0) AS col2,
sumIf(1, nullIf(number, 3) > 0) AS col3
FROM numbers(1, 5);