I have a table of student scorecard. here is the table,
subject | mark1 | mark2 | mark3 |......|markn stud1 | 99 | 87 | 92 | | 46 stud2
You could change the database structure such that all subject rows become a column variable (like spreadsheet). This makes such analysis much easier