ClickHouse/dbms/tests/queries/1_stateful/00147_global_in_aggregate_function.sql
2018-08-07 20:08:51 +03:00

3 lines
227 B
SQL

SELECT sum(UserID GLOBAL IN (SELECT UserID FROM remote('127.0.0.{1,2}', test.hits))) FROM remote('127.0.0.{1,2}', test.hits);
SELECT sum(UserID GLOBAL IN (SELECT UserID FROM test.hits)) FROM remote('127.0.0.{1,2}', test.hits);