Name, Maths, Science, and English are the columns in my table StudentMarks. Data looks like:
Name,  Maths, Science, English  
Tilak, 90,    40,      60  
Raj,   30,    20,      10
I'd want to see it set up as follows:
Name,  Subject,  Marks
Tilak, Maths,    90
Tilak, Science,  40
Tilak, English,  60
I can correctly obtain Name and Marks using Unpivot, but I am unable to link the name of the Subject column in the source table to the necessary result set.
How do I accomplish this?