ASSIGNMENT
MODULE TITLE: DATABASE DESIGN & MODELLING
COURSE: DICT
DEADLINE OF ASSIGNMENT: 20-08-2019
Customer Requirements
The company is organized into departments. Each department has a unique name, a unique number, and a particular employee who manages the department. We keep track of the start date when that employee began managing the department. A department may have several locations.
A department controls a number of projects, each of which has a unique name, a unique number, and a single location.
We store each employeesname, Social Security number,address, salary, gender, and birth date. An employee is assigned to one department, but may work on several projects, which are not necessarily controlled by the same department. We keep track of the current number of hours per week that an employee works on each project. We also keep track of the direct supervisor of each employee (who is another employee).
We want to keep track of the dependents of each employee for insurance purposes. We keep each dependents first name, gender, birth date, and relationship to the employee.
Create an ER- Diagram for the company database.(20 marks)
Generate the Report on the following Queries:-
QUERY 1
Retrieve the name and address of all FEMALE employees.(5 marks)
QUERY 2
Retrieve the name and address of all employees who work for the Research department. (5 marks)
QUERY 3
Find the names of employees who work on all the projects controlled by department number 5.(5 marks)
QUERY 4
List the names of all employees with two or more dependents. (5 marks)
QUERY 5
Make a list of project numbers for projects that involve an employee whose last name is Smith, either as a worker or as a manager of the department that controls the project. (10 marks)
Reviews
There are no reviews yet.