Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please answer question(a) and b using the following table held in relational database management systems. 2. (10 Pts. Please answer questions (a) and (b) using

please answer question(a) and b using the following table held in relational database management systems.

image text in transcribed

2. (10 Pts. Please answer questions (a) and (b) using the following Relational Database Management Systems. (b) using the following tables held in a Employee Department Project WorksOn (empID, Name, IName, address, DOB, sex, position, deptNo) (deptNo, deptName, mgrEmplD) (projNo, projName, deptNo) (empID, projNo, hours Worked) where Employee Department contains emplevee details and empID is the key 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. contains details of the projects in each department and the key is projNo (no two departments can run the same project). contains details of the hours worked by employees on each project, and emplD/projNo form the key. Project and WorksOn (a) Produce a report of the total hours worked by each employee, arranged in order of department number and within department, alphabetically by employee surname. (Show the query) (b) 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. (Show the query) 2. (10 Pts. Please answer questions (a) and (b) using the following Relational Database Management Systems. (b) using the following tables held in a Employee Department Project WorksOn (empID, Name, IName, address, DOB, sex, position, deptNo) (deptNo, deptName, mgrEmplD) (projNo, projName, deptNo) (empID, projNo, hours Worked) where Employee Department contains emplevee details and empID is the key 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. contains details of the projects in each department and the key is projNo (no two departments can run the same project). contains details of the hours worked by employees on each project, and emplD/projNo form the key. Project and WorksOn (a) Produce a report of the total hours worked by each employee, arranged in order of department number and within department, alphabetically by employee surname. (Show the query) (b) 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. (Show the query)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

SQL Antipatterns Avoiding The Pitfalls Of Database Programming

Authors: Bill Karwin

1st Edition

1680508989, 978-1680508987

More Books

Students also viewed these Databases questions