ClickHouse/tests/queries/0_stateless/00373_group_by_tuple.sql

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

3 lines
197 B
MySQL
Raw Normal View History

2016-09-23 01:18:46 +00:00
SELECT if(number % 2, tuple(0, 'Hello'), tuple(1, 'World')) AS x, count() FROM (SELECT number FROM system.numbers LIMIT 10) GROUP BY x ORDER BY x;
SELECT if(0, tuple(0), tuple(1)) AS x GROUP BY x;