ClickHouse/tests/queries/0_stateless/00881_unknown_identifier_in_in.sql

5 lines
114 B
MySQL
Raw Normal View History

2019-08-28 17:00:20 +00:00
SELECT toUInt64(1) x FROM (select 1)
GROUP BY 1
HAVING x
IN ( SELECT countIf(y, z == 1) FROM (SELECT 1 y, 1 z) );