I am planning a database that will record school attendance for students everyday.
The problem is that i cant predict the total numbers of student in a class and also the days will increase steadily, so i am struggling with the MySQL db part.
Should i use the students name as columns and each date as rows? I know that using this approach will force me to alter the table's columns every time i add or remove a student from the class. e.g.
day student1 student2 student3 studentN
---- -------- -------- -------- --------
1 x x x
Have anyone worked on similar problem or have any suggestion?