mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-15 10:52:30 +00:00
5 lines
303 B
SQL
5 lines
303 B
SQL
DROP TABLE IF EXISTS t;
|
|
CREATE TABLE t (letter String) ENGINE=MergeTree order by () partition by letter;
|
|
INSERT INTO t VALUES ('a'), ('a'), ('a'), ('a'), ('b'), ('a'), ('a'), ('a'), ('a'), ('a'), ('a'), ('a'), ('a'), ('a'), ('a'), ('a'), ('c');
|
|
SELECT anyHeavy(if(letter != 'b', letter, NULL)) FROM t;
|