ClickHouse/tests/queries/0_stateless/00027_distinct_and_order_by.sql

3 lines
122 B
MySQL
Raw Normal View History

SET max_rows_to_sort = 100;
SELECT DISTINCT x FROM (SELECT number % 10 AS x FROM system.numbers LIMIT 100000) ORDER BY x;