ClickHouse/dbms/tests/queries/0_stateless/00425_count_nullable.sql
2019-10-12 15:44:14 +00:00

10 lines
348 B
SQL

SELECT count() FROM (SELECT number AS x FROM system.numbers LIMIT 10);
SELECT count(x) FROM (SELECT number AS x FROM system.numbers LIMIT 10);
SELECT count(x) FROM (SELECT CAST(number AS Nullable(UInt64)) AS x FROM system.numbers LIMIT 10);
SELECT count(x) FROM (SELECT nullIf(number, 5) AS x FROM system.numbers LIMIT 10);
SELECT count(NULL);