/gist:3702bf78aabc684027e5 Secret
Last active
December 23, 2015 07:49
Star
You must be signed in to star a gist
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
begin | |
for mavg as | |
with | |
avgs (avgx) as | |
(values 1, 10, 100, 1000) | |
select avgx | |
from avgs | |
do | |
insert into replxa (....) | |
with | |
awin as | |
(select ...... | |
........... | |
........... = mavg.avgx | |
........... | |
); | |
end for; | |
end; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment