mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 17:12:03 +00:00
11 lines
194 B
MySQL
11 lines
194 B
MySQL
|
WITH arrayJoin(['a', 'b']) AS z
|
||
|
SELECT
|
||
|
z,
|
||
|
sumMergeForEach(x) AS x
|
||
|
FROM
|
||
|
(
|
||
|
SELECT sumStateForEach([1., 1.1, 1.1300175]) AS x
|
||
|
FROM remote('127.0.0.{1,2}', system.one)
|
||
|
)
|
||
|
GROUP BY z;
|