Created
April 14, 2019 05:19
-
-
Save pgp44/d12ef36c6ab0015bf5993ddbbe1bd10e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
with recursive inputparams as ( | |
select 260 as BucketSize | |
), | |
... | |
timeseries as ( | |
select * from ( | |
select '2019–04–01 23:59:00'::timestamp, 3504 | |
union select '2019–04–01 23:58:00'::timestamp, 3488 | |
... | |
) tab(timestamp,value) | |
), |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment