ClickHouse/dbms/tests/queries/0_stateless/00647_histogram.sql

9 lines
487 B
MySQL
Raw Normal View History

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);
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