Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Lisa the three concepts of database design as discussed in class and define each

ID: 3799395 • Letter: L

Question

Lisa the three concepts of database design as discussed in class and define each concept Phil has been asked to create a database foe his company. 1 he 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) Which field in the Employee table should be the primary key and why? Which field in the Project table should be the nary 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. What data type should Phil use for the Hourly Pay Rate field? Why? What data type should Phil use for the Social Security Number field? Why?

Explanation / Answer

18. Social Security Number will be the primary number because we can uniquely determine the employee from this number.As the other fields can have same entries but from Social Security Number we can uniquely determine the row.

19. Project Code will be the primary number because we can uniquely determine the employee from this number.As the other fields can have same entries but  project code can uniquely identifies the tuple.

20. We can use numeric(7,2) is a number that has 5 digits before the decimal and 2 digits after the decimal.We will have hourly rate as combination of integral and fractional part

21 Social Security Number should be number because we can retrieve data faster in comparsion with other data types.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote