I\'m having trouble with a Cross Tab query in SQL Server and was hoping that someone could please help?
I have the following table:
- Student ID - Na
SELECT studentId, StudentName, English, Maths, Computing FROM ( SELECT T.StudentId, T.StudentName, T.Course, T.CourseLevel FROM Test T ) AS J PIVOT(MAX(CourseLevel) FOR Course IN ( [English], [Maths], [Computing] )) AS P