Question: Design a Data Base using the requirements mentioned below. Show the ERD for the database. Answer questions 1-7 and show the results for each query.

Design a Data Base using the requirements mentioned below. Show the ERD for the database. Answer questions 1-7 and show the results for each query. Each table must be populated with 5 to 7 rows (or tuples).

The requirements for a company database

The company is organized into departments. Each department has a name, a number, and an employee who manages the department. We keep track of the start date when that employee started managing the department. A department may have several locations. We store each employees name, social security, address, salary, sex, and birth date. Employees are classified into managers, technicians, engineers, or secretaries based on their functions. 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 number of hours per week that an employee works on each project. Each project is located in a specific city. We also keep track of the direct supervisor of each employee. We want to keep track of the dependents of each employee for benefits purposes. We keep dependents name, sex, birth, date, and relationship to the employee.

Hint:

For any unspecified requirements, add your appropriate assumptions to make the specifications complete.

You may identify multi-value attributes, composite attribute, and multi-valued composite attributes.

As a reference use the text book: Fundamentals of Database Systems.

Develop the query and show the output for each of the following points:

List all the relations in the database.

List all the attributes and type definitions for each table.

List all the tuples in each table.

For each department, retrieve the department number and name, the number of employees, total average salary of the employees.

For each employee, list the projects the employee works on.

For employee, list the projects the employee manages.

List the employees that each supervisor supervises.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!