Hi i have 10 years of record for each month wise ..i want display records in Pivot format.
Ex:
PName Period amount
Prod1--- 01-01-2016 ---10
Prod1--- 01-02-2016 ---11
Prod1--- 01-03-2016 ---12
Prod1--- 01-04-2016 ---13
same prod1 records present for for 10 years.
Prod2--- 01-01-2016 ---12
Prod2--- 01-02-2016 ---13
Prod2--- 01-03-2016 ---14
Prod2--- 01-04-2016 ---15
same prod2 records present for for 10 years.
output should be
PName--Jan 2016-- Feb 2016-- Mar 2016....Apr 16---for 10 years
Prod1----10---------11----------12-----------13-- so on....
prod2-- --12---------13----------14-----------15-- so on...
for few rows i know it's easy we can pivot the columns but for my requirement i need for more than 10 years.
is it possible to get the above output?reply me if it's not possible.
also you can reply me any other table structure/table need to add to achieve this scenario.
even if i am keeping headers in a separate table below whether it's possible.
tbl_Temp
Jan 2016
Feb 2016
Mar 2016 so on..
let me know if need more clarification.
it's really urgent..
Thanks
Santosh