calculate 2 cumulative sums for 2 different groups – Postgresql
i have a table that looks like this: id position value 5 senior 10000 6 senior 20000 8 senior 30000 9 junior 5000 4 junior 7000 3 junior 10000 It is sorted by position and value (asc) already. I want…