How to transform rows in Columns with Cube, Pivot or Rollup SQL

Viewed 74

I have a table with this information:

code    score    quality
123     2015      12
123     2016      16    
123     2017      14

I would like to show like that

  code    2015    2016  2017
    123    12      16    14

Can you help me please? Thanks

1 Answers
Related