ClickHouse/dbms/tests/queries/0_stateless/00037_totals_limit.sql
2014-05-22 05:21:37 +04:00

2 lines
96 B
SQL

SELECT count(), arrayJoin([1, 2, 3]) AS n GROUP BY n WITH TOTALS ORDER BY n LIMIT 1 FORMAT JSON