This is called univot, pivot is the exact opposite (add 2 columns).
You can do this with a simple UNION ALL:
SELECT 'Base',s.temp FROM YourTable s
UNION ALL
SELECT t.year,t.temp1 FROM YourTable t
This refers to what you wrote in the comments, if the year is constant, you can replace it with "2015"
source
share