This is my SQL statement..
SQL Statement: SELECT tbl_subjectsenrolled.SubjectID, tbl_subject.SubjectDesc, studentsubjectgrade.Finals
FROM tbl_subject
INNER JOIN tbl_subjectsenrolled
ON tbl_subject.SubjectID=tbl_subjectsenrolled.SubjectID
INNER JOIN studentsubjectgrade
ON tbl_subjectsenrolled.SubjectID=studentsubjectgrade.subjectID
WHERE studentsubjectgrade.StudentID='04-0044'
But the OUTPUT is this:
SubjectID1 SubjectDesc1 Finals1
SubjectID1 SubjectDesc1 Finals1
SubjectID2 SubjectDesc2 Finals2
SubjectID2 SubjectDesc2 Finals2
Instead of this:
SubjectID1 SubjectDesc1 Finals1
SubjectID2 SubjectDesc2 Finals2
What is wrong with my SQL statement? Pls help..