I would appreciate any help anyone could give me on this, I am pretty new to SQL and finding it a bit of a steep learning curve. My problem is I have to find a list of teachers who have at least 3 degree students in their class. Here is my shot at it that hasn't been very successful:
select l.title, l.name,u.unit_code
from u,l
where l.STAFF_NO in (
select STAFF_NO
from u
where UNIT_CODE in (
select count (UNIT_CODE)
from e
where STU_NO > 3));
That part so far doesn't work, I wanted to some how connect the stu_no with this query:
select STU_NO
from s
where course='degree';
I don't know how to link this part either. I have been scratching my head over this for days.
select l.title, l.name,u.unit_code
from u,l
where l.STAFF_NO in (
select STAFF_NO
from u
where UNIT_CODE in (
select count (UNIT_CODE)
from e
where STU_NO > 3));
That part so far doesn't work, I wanted to some how connect the stu_no with this query:
select STU_NO
from s
where course='degree';
I don't know how to link this part either. I have been scratching my head over this for days.