2018-06-17 17:59:06 +00:00
|
|
|
select histogram(5)(number-10) from (select * from system.numbers limit 20);
|
|
|
|
select histogram(5)(number) from (select * from system.numbers limit 20);
|
2018-07-04 22:37:48 +00:00
|
|
|
|
|
|
|
WITH arrayJoin(histogram(3)(sin(number))) AS res select round(res.1, 2), round(res.2, 2), round(res.3, 2) from (select * from system.numbers limit 10);
|
|
|
|
WITH arrayJoin(histogram(1)(sin(number-40))) AS res SELECT round(res.1, 2), round(res.2, 2), round(res.3, 2) from (select * from system.numbers limit 80);
|
2018-07-04 22:32:55 +00:00
|
|
|
|
|
|
|
SELECT histogram(10)(-2);
|
2018-07-05 13:14:05 +00:00
|
|
|
|
2018-07-07 10:37:07 +00:00
|
|
|
select histogramIf(3)(number, number > 11) from (select * from system.numbers limit 10);
|