Table in Database
idStudentsubjectmark
1 English English 75
2 Maths Maths 85
3 Physics Physics 73
4 Chemistry Chemistry 80
5 English English 60
6 Maths Maths 65
7 Physics Physics 69
8 Chemistry Chemistry 70
9 English English 75
10 Maths Maths 70
11 Physics Physics 85
12 Chemistry Chemistry 77
13 English English 95
14 Maths Maths 90
15 Physics Physics 91
16 Chemistry Chemistry 75

Output Table - 2nd Order of Table
idStudentsubjectmark
Physics Physics 73
Maths Maths 65
English English 75
Chemistry Chemistry 77
Physics Physics 91