cartodb-postgresql/test/CDB_EqualIntervalBinsTest.sql

5 lines
180 B
MySQL
Raw Normal View History

2015-05-15 03:32:58 +08:00
WITH data AS (
SELECT array_agg(x) s FROM generate_series(1,300) x
WHERE x % 5 != 0 AND x % 7 != 0
)
2015-05-15 03:45:57 +08:00
SELECT round(unnest(CDB_EqualIntervalBins(s, 7)),7) FROM data