ClickHouse/dbms/tests/queries/0_stateless/00037_totals_limit.sql

2 lines
96 B
MySQL
Raw Normal View History

2014-05-22 01:21:37 +00:00
SELECT count(), arrayJoin([1, 2, 3]) AS n GROUP BY n WITH TOTALS ORDER BY n LIMIT 1 FORMAT JSON