mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-06 07:32:27 +00:00
6 lines
173 B
MySQL
6 lines
173 B
MySQL
|
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);
|