Create 02560_quantile_min_max.sql

This commit is contained in:
Yakov Olkhovskiy 2023-02-14 09:37:05 -05:00 committed by GitHub
parent f5811a3d5a
commit c8529da226
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,10 @@
DROP TABLE IF EXISTS nums;
CREATE TABLE nums(n UInt32) ENGINE = Memory;
INSERT INTO nums VALUES (4),(2),(1),(3);
SELECT quantilesExactExclusive(0.1, 0.9)(n) FROM nums;
SELECT quantilesExactInclusive(0, 1)(n) FROM nums;
DROP TABLE nums;