mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-11 17:02:25 +00:00
32 lines
619 B
SQL
32 lines
619 B
SQL
SELECT * FROM (
|
|
SELECT (
|
|
SELECT 0 AS x
|
|
FROM (SELECT 1 AS x) t1
|
|
JOIN (SELECT 1 AS x) t2 USING (x)
|
|
) AS x
|
|
FROM ( SELECT 1 AS x )
|
|
) FORMAT Null;
|
|
|
|
SELECT (x IN (111)) == 1
|
|
FROM
|
|
(
|
|
SELECT ( SELECT 3 :: Nullable(UInt8) WHERE 0 ) AS x
|
|
FROM ( SELECT 2 AS x )
|
|
) FORMAT Null;
|
|
|
|
SELECT (x IN (111)) == 1
|
|
FROM
|
|
(
|
|
SELECT ( SELECT 3 :: Nullable(UInt8) WHERE 1 ) AS x
|
|
FROM ( SELECT 2 AS x )
|
|
) FORMAT Null;
|
|
|
|
SELECT (x IN (111)) == 1
|
|
FROM
|
|
(
|
|
SELECT ( SELECT 3 WHERE 0 ) AS x
|
|
FROM ( SELECT 2 AS x )
|
|
) FORMAT Null;
|
|
|
|
SELECT x, (SELECT 1 WHERE NULL) AS x FORMAT Null;
|