Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Database Systems Please answer questions (a) and (b) using the following tables held in a Relational Database Management Systems. Employee ( empID , fName, lName,

Database Systems

Please answer questions (a) and (b) using the following tables held in a Relational Database Management Systems.

Employee (empID, fName, lName, address, DOB, sex, position, deptNo)

Department (deptNo, deptName, mgrEmpID)

Project (projNo, projName, deptNo)

WorksOn (empID, projNo, hoursWorked)

where Employee contains employee details and empID is the key.

Department contains department details and deptNo is the key. mgrEmpID 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 WorksOn contains details of the hours worked by employees on each project, and empID/projNo form the key.

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

Visual Basic 4 Ole Database And Controls Superbible

Authors: Michael Hatmaker, C. Woody Butler, Ibrahim Malluf, Bill Potter

1st Edition

1571690077, 978-1571690074

More Books

Students also viewed these Databases questions

Question

2. How were various roles filled?

Answered: 1 week ago

Question

2. What process will you put in place to address conflicts?

Answered: 1 week ago