Quantcast
Channel: Answers for "how to convert row data into column dynamically in sql-server with rank function"
Viewing all articles
Browse latest Browse all 4

Answer by Matt Whitfield

$
0
0

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.


Viewing all articles
Browse latest Browse all 4

Trending Articles