mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-05 14:02:21 +00:00
97f2a2213e
* Move some code outside dbms/src folder * Fix paths
13 lines
217 B
SQL
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;
|