Hi, below tells me all of the students who have failed an exam
select emark, surname, forenames from result, student
where emark=0
and result.netid = student.netid;
im looking for the person who has failed six exams
ive tried:
select emark, surname, forenames from result, student
where emark=0
(select count( surname) where surname >6)
and result.netid = student.netid;
but no luck. Iv'e also tried distinct surname as well.
Can someone point me in the right direction.
Thanx