Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

6. For each project on which more than two employees worked, list the project nu

ID: 3837044 • Letter: 6

Question

6. For each project on which more than two employees worked, list the project number, project name and the number of employees who work on that project.

The following tables form part of a database held in a Relational Database Management System. Use this schema to answer queries 3, 4, 5, & 6. Employee (emplD, fNo Name, address, DOB, sex, position, deptNo) ame, Department (deptNo, deptName, mgrEmpID) Project projNo, projName, deptNo) Works On emplD, projNo, hours Worked where Employee contains employee details and emplD is the key. Department contains department details and deptNo is the key. mgrEmplD identifies the employee who is the manager of the department. There is only one manager for each department. Project contains details of the projects in each department and the key is projNo (no two departments can run the same project). and Works On contains details of the hours worked by employees on each project, and em projNo form the key.

Explanation / Answer

Query : select p.projNo,projName,count(*) from Project p,WorksOn w where p.projNo=w.projNo group by p.projNo,p.projName having count(*)>2;

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote