Table : MyConfigurations
ID ConfigName Property Value Scope
--------------------------------------------------------------------------
9 AddMbrInfo ADDMBRINFO C:\ROOT\F1.dtl Package
10 AddMbrInfo ADDMBRINFO2 C:\ROOT\F2.dtl Package
11 AddMbrInfo EmailFromAddress [email protected] Package
Desired Output:
ConfigName ADDMBRINFO ADDMBRINFO2 EmailFromAddress
------------------------------------------------------------------------------
Daily_DFWL_Info_new C:\ROOT\F1.dtl C:\ROOT\F2.dtl [email protected]
I was trying to write transpose of row to columns depending upon the rows.
How can I write query to transpose dynamically if rows in the table increases?
Eg: if Property
column has few more columns in future, I need to build the query dynamically with out hardcoding.