I have the following
Period Name Department Account Salary
jan Doe 100 1200 $1000
feb jane 100 1200 $ 500
Mar John 110 1200 $1000
jan paul 100 1300 $3000
I'd like to get the following output
Period Department Account Salary
jan 100 1200 $1000
feb 100 1200 $1500(cumul. of salary by dept. as of feb)
jan 100 1300 $3000
Mar 110 1200 $1000
Period Name Department Account Salary
jan Doe 100 1200 $1000
feb jane 100 1200 $ 500
Mar John 110 1200 $1000
jan paul 100 1300 $3000
I'd like to get the following output
Period Department Account Salary
jan 100 1200 $1000
feb 100 1200 $1500(cumul. of salary by dept. as of feb)
jan 100 1300 $3000
Mar 110 1200 $1000