ClickHouse/dbms/tests/queries/0_stateless/01063_create_column_set.sql
Alexey Milovidov 06269e572f Added test
2020-01-15 21:19:46 +03:00

13 lines
213 B
SQL

DROP TABLE IF EXISTS mt;
CREATE TABLE mt (x UInt8, y Date) ENGINE = MergeTree ORDER BY x;
SELECT count()
FROM mt
ANY LEFT JOIN
(
SELECT 1 AS x
) USING (x)
PREWHERE x IN (1) WHERE y = today();
DROP TABLE mt;