Created
April 9, 2012 16:43
-
-
Save viliampucik/2344646 to your computer and use it in GitHub Desktop.
Random 5-minute Samples
This file contains 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
select i * '5 minute'::interval + timestamp '2012-01-01 00:00:00', | |
trunc(100 * random()::numeric, 2) | |
from generate_series(0, 24 * 60 / 5 - 1) as t(i) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment