mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 10:02:01 +00:00
3 lines
197 B
SQL
3 lines
197 B
SQL
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;
|