Last active
April 9, 2020 14:10
-
-
Save ogiovannyoliveira/6a945ced811f6b15e688d6a2cbc8ea36 to your computer and use it in GitHub Desktop.
Consulta SQL com valor acumulativo.
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 | |
sum(sum(column)) OVER (ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW) as accumulated | |
FROM | |
table | |
WHERE id_foo = ? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment