mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-16 03:12:43 +00:00
5 lines
114 B
MySQL
5 lines
114 B
MySQL
|
SELECT toUInt64(1) x FROM (select 1)
|
||
|
GROUP BY 1
|
||
|
HAVING x
|
||
|
IN ( SELECT countIf(y, z == 1) FROM (SELECT 1 y, 1 z) );
|