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