mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 23:52:03 +00:00
97f2a2213e
* Move some code outside dbms/src folder * Fix paths
10 lines
317 B
SQL
10 lines
317 B
SQL
DROP TABLE IF EXISTS t;
|
|
|
|
CREATE TABLE t (a Int, b Int, c Int) ENGINE = MergeTree ORDER BY tuple();
|
|
INSERT INTO t SELECT number, number * 2, number * 3 FROM numbers(100);
|
|
|
|
SELECT count() FROM t PREWHERE NOT ignore(a) WHERE b > 0;
|
|
SELECT sum(a) FROM t PREWHERE isNotNull(a) WHERE isNotNull(b) AND c > 0;
|
|
|
|
DROP TABLE t;
|