TSQL Pivot without aggregate function

后端 未结 9 1866
青春惊慌失措
青春惊慌失措 2020-11-22 09:10

I have a table like this...

CustomerID   DBColumnName   Data
--------------------------------------
1            FirstName      Joe
1            MiddleName           


        
9条回答
  •  滥情空心
    2020-11-22 09:54

    The OP didn't actually need to pivot without agregation but for those of you coming here to know how see:

    sql parameterised cte query

    The answer to that question involves a situation where pivot without aggregation is needed so an example of doing it is part of the solution.

提交回复
热议问题