Let's say we have these columns in the table:
(
ID int primary key identity(1,1),
fk_studentsID int foreign key(fk_studentsID) references Sudents (ID) not null,
fk_classID int foreign key(fk_classID) references Classes (ID) not null,
Date date not null,
Hours int CHECK (Hours>=1 AND Hours<=5) not null,
Mark bit not null)
Then you can output the total statistics for the day or the individual student's attendance for a certain time, etc.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…