Tay Johnson
asked on
Is there a way to create code for cumulative variance using sql and not excel spreadsheets?
Is there a way to create sql code for cumulative variance?
col1 | cum var
21 21 =21+0
-34 -13 =21+(-34)
45 32 = -13+45
56 88 = 32 + 56
-78 10 = 88 + (-78)
col1 | cum var
21 21 =21+0
-34 -13 =21+(-34)
45 32 = -13+45
56 88 = 32 + 56
-78 10 = 88 + (-78)
Yes, I believe, however, you should also have a column (or set of columns) to order these rows.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks for the solution and a link to create my own sample code. Awesome
Thanks for the quick closure, cheers. Paul.