Hi ,
I need to bring the latest exam result for each class and subject . Student might attended the same class and subjects multiple times.
Table structure
tblClassSubject
ClassId
SubjectId Pk
---
tblExam
ExamId
StudentId
Date
-----
tblExamResult
ExamResultId pk
ExamId fk to Exam
-----
tblExamResultStatus
ExamResultStatusId Pk
SubjectId Fk to Class Subject
Mark
-----
Now i need to bring latest Exam mark of Class and Subject for each student. Student may attend the same class exam more than once.But student will attend all subject of each class for every exam.