Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

Latest Exam Result

$
0
0

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.



Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>