Understanding PIVOT function in T-SQL

后端 未结 6 2077
梦谈多话
梦谈多话 2020-11-22 09:06

I am very new to SQL.

I have a table like this:

ID | TeamID | UserID | ElementID | PhaseID | Effort
-------------------------------------------------         


        
6条回答
  •  灰色年华
    2020-11-22 10:05

        SELECT ,
        [first pivoted column] AS ,
        [second pivoted column] AS ,
        ...
        [last pivoted column] AS 
    FROM
        (
                            
        
    提交评论

提交回复
热议问题