ClickHouse/dbms/tests/queries/0_stateless/00059_shard_global_in.sql
2018-01-29 14:40:28 +03:00

2 lines
185 B
SQL

SELECT number FROM remote('127.0.0.{2,3}', system, numbers) WHERE number GLOBAL IN (SELECT number FROM remote('127.0.0.{2,3}', system, numbers) WHERE number % 2 = 1 LIMIT 10) LIMIT 10;