Question: write a query to return the year, month, and sales columns, along with a 4 th column named prior _ month _ sales showing the
write a query to return the year, month, and sales columns, along with a th column named priormonthsales showing the sales from the prior month. There are only rows in the salestotals table, one for each month of so you will not need to group data or filter partition on regionid or productid Please use a windowing fuction for this as shown in the class video.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
