ClickHouse/dbms/tests/queries/0_stateless/01063_create_column_set.sql
Artem Zuikov 912ec60e7e
Enable joined_subquery_requires_alias by default (#9274)
enable joined_subquery_requires_alias by default
2020-02-26 16:11:06 +03:00

13 lines
217 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
) js2 USING (x)
PREWHERE x IN (1) WHERE y = today();
DROP TABLE mt;