Optimising Marksheet Database
You really should not hide the data you want to do arithmetic inside any kind of structure.

Use a table with 4 columns:  class, student, subject, score.

Then things like each student's avg score:

SELECT student,
       AVG(score)
    FROM tbl
    GROUP BY student;