Can you use a relational representation where you have a 2nd table, which lists the IA marks and external marks individually in single rows? That means, you have one student records in a STUDENTS table. Then you have a MARKS table (or whatever you want to name it), which has 1 column STUDENT_ID, 1 column SEMESTER, 1 column IA_MARK and another column EXTERNAL_MARK or so.