mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-13 19:14:30 +00:00
9 lines
264 B
MySQL
9 lines
264 B
MySQL
|
drop table if exists tab;
|
||
|
create table tab (x LowCardinality(String)) engine = MergeTree order by tuple();
|
||
|
|
||
|
insert into tab values ('a'), ('bb'), ('a'), ('cc');
|
||
|
|
||
|
select count() as c, x in ('a', 'bb') as g from tab group by g order by c;
|
||
|
|
||
|
drop table if exists tab;
|