SELECT c.cname, COUNT(e.ccode)
FROM class c
INNER JOIN enrolled e ON e.ccode = c.ccode
WHERE room = 'MB100'
AND e.ccode = < 10;
I’m trying to find the names of courses that are in room MB100 that have less than 10 students, where am i going wrong?
You are missing the
group by c.cname, Try this: