ClickHouse/dbms/tests/queries/0_stateless/00127_group_by_concat.sql
2015-02-22 20:44:58 +03:00

2 lines
143 B
SQL

SELECT materialize('') AS k1, number % 123 AS k2, count() AS c FROM (SELECT * FROM system.numbers LIMIT 1000) GROUP BY k1, k2 ORDER BY k1, k2;