|
I want to convert row data into columns dynamically from two tables. Plz help me. i have data in following format from two tables
But i want to result in follwing format to dynamically make columns:
(comments are locked)
|
|
Form me same secanario i have to use dynamic sql but i cant use dynamic sql in view can any one give solution to my scanario
(comments are locked)
|
|
Based on the content of your question, you want to use PIVOT. Based on the title of your question, I have no idea what you're asking, and you'll have to expand what you've written to at least include some examples. Edit -> Having seen your update, you definitely want to use PIVOT. If you do not know what the source data range will be before you pivot, then you can use dynamic SQL to return the result. You can find an example of that in my answer to this question.
(comments are locked)
|

