mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-16 03:12:43 +00:00
5 lines
303 B
MySQL
5 lines
303 B
MySQL
|
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;
|