Region(char) | North |
Sale_Date(Nvarchar) | 04/02/2014 |
Sale_Month(Nvarchar) | 04/2014 |
Sale_Amt(int) | 10 |
Sale_Date(Nvarchar) | 04/12/2014 |
Sale_Month(Nvarchar) | 04/2014 |
Sale_Amt(int) | 30 |
Region(char) | EAST |
Sale_Date(Nvarchar) | 04/02/2014 |
Sale_Month(Nvarchar) | 04/2014 |
Sale_Amt(int) | 10 |
Region(char) | North |
Sale_Date(Nvarchar) | 05/12/2014 |
Sale_Month(Nvarchar) | 05/2014 |
Sale_Amt(int) | 30 |
Region(char) | North |
Sale_Date(Nvarchar) | 3/12/2015 |
Sale_Month(Nvarchar) | 03/2015 |
Sale_Amt(int) | 100 |
Region(char) | EAST |
Sale_Date(Nvarchar) | 5/12/2015 |
Sale_Month(Nvarchar) | 05/2015 |
Sale_Amt(int) | 30 |
April | May | June | July | August | September | October | November | December | January | February | March | |
North | 40 | 30 | 100 | 100 | ||||||||
EAST | 10 |
Hello Forum Members,
I have a a table with Region,Sales Date(Nchar),Sale_Month(Nchar),Sale_Amt(int).
From the current month I have to generate sum of sale_amt for next 12 months.Please find the table and output details above. I can use either Sale_Date or Sale_Month.Please advise me.
Kind Regards,
Sqlquery9