mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-05 05:52:05 +00:00
3 lines
197 B
MySQL
3 lines
197 B
MySQL
|
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;
|