mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-11 18:14:03 +00:00
97f2a2213e
* Move some code outside dbms/src folder * Fix paths
5 lines
365 B
SQL
5 lines
365 B
SQL
CREATE TABLE IF NOT EXISTS foo_00234(id UInt64) Engine=Memory;
|
|
INSERT INTO foo_00234(id) VALUES (0),(4),(1),(1),(3),(1),(1),(2),(2),(2),(1),(2),(3),(2),(1),(1),(2),(1),(1),(1),(3),(1),(2),(2),(1),(1),(3),(1),(2),(1),(1),(3),(2),(1),(1),(4),(0);
|
|
SELECT sum(id = 3 OR id = 1 OR id = 2) AS x, sum(id = 3 OR id = 1 OR id = 2) AS x FROM foo_00234;
|
|
DROP TABLE foo_00234;
|