schema:
student(snum:int,sname:string,major:string,level:s tring,age:int)
class(name:string,meet_at:time,room:string,fid:int )
enrolled(snum:int,cname:string)
faculty(fid:int,fname:string,deptid:int)
1:find the names of all juniors (level = JR ) who are enrolled in a class taught byb I.teach.
Sol:select snum,snames from student s , where in (select snum from enrolled e , student s ,faculty f where s.snum = e.snum and s.level = " JR" and c.fid = f.fid and fname = "I.Teach");
Is this right???