1.厂家 S (Sno,Sname,Status,City)  产品 P (Pno,Pname,Weight,Color)  工程 J (Jno,Jname,City)  供货 SPJ (Sno,Pno,Jno,QTY)  查询至少使用了厂家S1所提供的全部零件的工程名 2.某数据库中有表course (CNO,CNAME,TNO)和表 teacher(TNO,TNAME,DEPART),完成查询选修某课程的同学人数多于5人的教师姓名 select    tname from  teacher where tno in (select x.tno from course x,course y where x.cno=y.cno group by x.tno having   count(x.cno)>5)这里怎么是 x.cno=y.cno 还是答案错了?3.Emp(eid,ename,age,did,salary)    Dept(did,dname,mgr_id) 部门号 部门名称 部门经理职工号查询工资大于10000,且与他所在部门的经理年龄相同的职工姓名 select a.* from Emp a,Dept b,Emp c where a.did=b.did and b.,mgr_id=c.eid and a.salary>10000 and a.age=c.age怎么有a.age=c.age?我是这么写的
 select ename from Emp where salary>10000 and age in (select age from Emp ,Dept where Emp.did=Dept.did and Emp.eid=Dept.mgr_id)