Create a database for a company


Discuss the following:

Phil has been asked to create a database for his company. The database is to track employees and the projects on which the employees work. A project can have between 3 and 7 employees assigned to it. He has determined that he needs the following tables:

Employee (Social Security Number, Employee Name, Street Address, City, State, Postal Code, Date Hired, Hourly Pay Rate, Project Code)

Project (Project Code, Project Name, Completion Date)

a. Which field in the Employee table should be the primary key and why?

b. Which field in the Project table should be the primary key and why?

Now that Phil has created the tables and determined the primary and foreign keys, he needs to determine the data types for the fields in each table.

c. What data type should Phil use for the Hourly Pay Rate field? Why?

d. What data type should Phil use for the Social Security Number field? Why?

 

 

Solution Preview :

Prepared by a verified Expert
Database Management System: Create a database for a company
Reference No:- TGS01933166

Now Priced at $20 (50% Discount)

Recommended (94%)

Rated (4.6/5)