Understanding PIVOT function in T-SQL

后端 未结 6 2066
梦谈多话
梦谈多话 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 09:50

    To set Compatibility error

    use this before using pivot function

    ALTER DATABASE [dbname] SET COMPATIBILITY_LEVEL = 100  
    

提交回复
热议问题