ClickHouse/tests/queries/0_stateless/01555_or_fill.sql

23 lines
253 B
MySQL
Raw Normal View History

2020-11-04 11:09:20 +00:00
SELECT
count(),
countOrNull(),
sum(x),
sumOrNull(x)
FROM
(
SELECT number AS x
FROM numbers(10)
WHERE number > 10
);
SELECT
count(),
countOrNull(),
sum(x),
sumOrNull(x)
FROM
(
SELECT 1 AS x
WHERE 0
);