mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +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) );
|