Oracle Analytic LAG Function - To Analyze Two Year Sales
Step One:
This query uses Oracle analytic function -
LAG(value_expression, offset, default)
to analyze year-over-year sales/revenue. The typical
data warehouse
data/query is setup using query table q_dw. The
sales data of the year 2013 is analyzed against
2012 sales data (
final output
).