Skip to content
Advertisement

Tag: fiscal

Oracle SQL revenue YTD computation

I want to write an oracle SQL query to compute monthly YTD revenue (cumulative sum) for all possible combinations of the given dimensions. There are also some months where there are no transactions and hence no revenue, in this case the previous month YTD revenue must be displayed for that dimension combination. Given table: Sample Desired output: the fiscal year

Advertisement