Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

Generate Dynamic column based on SQL output

$
0
0

I have source data i.e. is present in SQL like below

Product CodeItem IDItem DescriptionCustomer NameMonth of OrderQty Ordered
10125Food ItemsHanaJan-01-201820
10125Food ItemsHanaFeb-01-201824
10125Food ItemsHanaMar-01-201844


Expected output is when I run at Feb month,this output required in excel

 

    Product CodeItem ID    Item DescriptionCustomer NameJan-18
10125  Food ItemsHana20

Expected output is when I run at Mar month  

Product CodeItem ID Item DescriptionCustomer NameJan-18             Feb
10125    Food ItemsHana2024

Expected output is when I run at Apr month  

Product CodeItem IDItem DescriptionCustomer NameJan-18                 Feb         Mar
10125    Food ItemsHana202444


I need to generate columns dynamically Jan-18,Feb-18,etc.

Like that need to get output in Excel from SQL like above.

Could you please any one help me for this scenario.I hope any one person will help?

Regards,

Niranjan B


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>