Question: What to submit: 1 . Word doc contains your work. Name it yourFirstnameLastnameAssignment 4 Due date: 1 0 / 1 4 by 1 1 :
What to submit:
Word doc contains your work. Name it yourFirstnameLastnameAssignment
Due date: by :pm
Instructions:
Read ERD below and map the entities and their relationships to relational models relational database tables.
Use this format to describe the tables, DO NOT draw another diagram for table design:
table name column list
primary key:
foreign keys:
columns with not null constraint:
columns with unique value constraint:
check out PPT for examples
Test your design: draw tables and add some testing records to tables, and make sure the tables can store the required information.
a Do NOT create tables in PostgreSQL server, you can include tables in the word doc.
b Insert employee records. fulltime employees, parttime employees.
c Insert department records.
d Insert project records.
e Let employee belongs to department
f Let employee belongs to department
g Department has no employees.
h Let department controls project
i Let department controls project and
j Let employee and work for project
k Let employee and work for project
l Let employee and work for project
m Employee has children as dependent
n feel free to add more records for other scenarios
Verify your table design. You dont need to show anything in the submitted doc for step and But please use those steps to verify the design to make sure it works.
Use normalization process to evaluate and update the table design if needed. Make sure your design is in NF
Consider the tasks below when using the database with the application and make sure your table design supports the functionalities.
Try to write some data in your tables, then manually pick up the information from those tables for the tasks below. In the next topic, we will learn how to write SQL statement to query the tables
a Show employee demographic information
b List employees by filer
i By last name or by first name
ii By salary range for fulltime employee
c Generate letters reports to employee with different name format. For example, in one report, display the name as firstname lastname; in another report, display the name as lastname firstname
d Display dependents for an employee, can search dependent by dependent first name or last name.
e Be able to add multiple addresses for a department.
f Be able to find out who is the manager of a department.
g Be able to find out what are the projects controlled by a department
h Be able to add more project controlled by a department
i Be able to assign employees work on a project
j Be able to move employee from one project to another project this doesnt mean the employee will be fired and hired again
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
