Materialized view for WTD, MTD, YTD summary
I have a daily table that needs to be summarized into a yearly table containing WTD, MTD and YTD revenue totals.
assume the daily table is :-
Daily_Sales (sale_day date, sales_revenue number(9,2))
Does anyone have the code to create a materialized view for this table or just the SQL query.
i.e. Yearly_Sales(Year, wtd_sales, mtd_sales, ytd_sales)
Thanks,
Mitool