I am trying to write the following query:
SELECT tblStudents.txtName, tblStudents.StudentId
FROM tblStudents
WHERE not exists (SELECT fidName
FROM tblAttendance
WHERE fidClass=7);
This part gives me 201 records :
SELECT tblStudents.txtName, tblStudents.StudentId FROM tblStudents
this part gives me 99 records:
SELECT fidName FROM tblAttendance WHERE fidClass=7
How do i put it together to get the names o the 102 people who are not in class 7
fidname is the foreign key of studentID
Thanks