ClickHouse/dbms/tests/queries/0_stateless/00041_aggregation_remap.sql
2014-12-14 11:28:42 +03:00

2 lines
127 B
SQL

SELECT number, count() FROM (SELECT number FROM system.numbers LIMIT 200000) GROUP BY number ORDER BY count(), number LIMIT 10