2015-10-21 21:43:42 +00:00
|
|
|
select 40 as z from (select * from system.numbers limit 3) group by z;
|
2017-01-13 18:43:43 +00:00
|
|
|
select 41 as z from remote('localhost,127.0.0.{1,2}', system.one) group by z;
|
|
|
|
select count(), 42 AS z from remote('localhost,127.0.0.{1,2}', system.one) group by z;
|
|
|
|
select 43 AS z from remote('localhost,127.0.0.{1,2}', system.one) group by 42, 43, 44;
|
2015-10-21 21:43:42 +00:00
|
|
|
select 11 AS z from (SELECT 2 UNION ALL SELECT 3) group by 42, 43, 44;
|
|
|
|
|
|
|
|
select 40 as z from (select * from system.numbers limit 3) group by z WITH TOTALS;
|
2017-01-13 18:43:43 +00:00
|
|
|
select 41 as z from remote('localhost,127.0.0.{1,2}', system.one) group by z WITH TOTALS;
|
|
|
|
select count(), 42 AS z from remote('localhost,127.0.0.{1,2}', system.one) group by z WITH TOTALS;
|
|
|
|
select 43 AS z from remote('localhost,127.0.0.{1,2}', system.one) group by 42, 43, 44 WITH TOTALS;
|
2015-10-21 21:43:42 +00:00
|
|
|
select 11 AS z from (SELECT 1 UNION ALL SELECT 2) group by 42, 43, 44 WITH TOTALS;
|
|
|
|
select 11 AS z from (SELECT 2 UNION ALL SELECT 3) group by 42, 43, 44 WITH TOTALS;
|
|
|
|
|
|
|
|
SELECT count() WITH TOTALS;
|
2017-01-13 18:43:43 +00:00
|
|
|
SELECT count() FROM remote('localhost,127.0.0.{1,2}', system.one) WITH TOTALS;
|