I have 2 tables one contain students name and id students
StdID | StdName
1 | 'John'
the seconed contain each subject result in a row
stdresults
StdID | SubjectID | SubjectName | Degree
1 | 1 | 'English' | 90
1 | 2 | 'Math' | 86
I want the result to be like this
StdID | StdName | Subject1Degree | Subject2Degree | Subject ... Degree
1 'John' 90 86 ....
Whatever was the number of subject