ClickHouse/tests/queries/0_stateless/00425_count_nullable.sql
Ivan 97f2a2213e
Move all folders inside /dbms one level up ()
* Move some code outside dbms/src folder
* Fix paths
2020-04-02 02:51:21 +03: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);