I have a table above and I want to convert it to a table as shown below
What methods can I use to do this?
I tried using PIVOT but I don't know how to change the Score column
So I hope I can find a solution to the above problem
I have done that But I want to use a table variable instead of a table. How to do it?
I want to replace Table your_table_name with a variable @table.
But SQL says Must declare the scalar variable "@table" but I have declared it before.