Question

In: Computer Science

Consider the following relation with structure PROJECT(ProjectID, EmployeeName, EmployeeSalary). ProjectID EmployeeName EmployeeSalary 100A Eric Jones 64,000...

Consider the following relation with structure PROJECT(ProjectID, EmployeeName, EmployeeSalary). ProjectID EmployeeName EmployeeSalary 100A Eric Jones 64,000 100A Donna Smith 70,000 100B Donna Smith 70,000 200A Eric Jones 64,000 200B Eric Jones 64,000 200C Eric Parks 58,000 200C Donna Smith 70,000 200D Eric Parks 58,000 Suppose that the following functional dependencies exist: (ProjectID, EmployeeName) → EmployeeSalary EmployeeName → EmployeeSalary Normalize this relation into BCNF. For this problem you only need to include table names, primary keys, and attributes as part of your solutions.

Solutions

Expert Solution

Answer:

Given table PROJECT

ProjectID EmployeeName EmployeeSalary
100A Eric Jones 64,000
100A Donna Smith 70,000
100B Donna Smith 70,000
200A Eric Jones 64,000
200B Eric Jones 64,000
200C Eric Parks 58,000
200C Donna Smith 70,000
200D Eric Parks 58,000

This table in the First Normal Form (1NF) and this table needs to normalize further.

Second Normal Form (2NF) :

  • This table needs to normalize further to create new tables and remove partial dependancies.

1.Table Name :Employee

Schema :Employee(EmployeeName , EmployeeSalary)

FD :EmployeeName → EmployeeSalary

EmployeeName EmployeeSalary
Eric Jones 64,000
Donna Smith 70,000
Eric Parks 58,000

2.Table Name :Project

Schema :Project(ProjectID, ProjectName)

FD:ProjectID→ ProjectName

ProjectID ProjectName
100A A
100B B
200A AA
200B BB
200C CC
200D DD

Third Normal Form (3NF) :

  • Above table needs to normalize into 3NF to remove transitive dependancy.

1.Table Name :Employee

Schema :Employee(EmployeeName , EmployeeSalary)

FD :EmployeeName → EmployeeSalary

EmployeeName EmployeeSalary
Eric Jones 64,000
Donna Smith 70,000
Eric Parks 58,000

2.Table Name :Project

Schema :Project(ProjectID, ProjectName)

FD :ProjectID→ ProjectName

ProjectID ProjectName
100A A
100B B
200A AA
200B BB
200C CC
200D DD

3.Table Name :EmployeeProject

Schema: EmployeeProject(ProjectID, EmployeeName)

ProjectID EmployeeName
100A Eric Jones
100A Donna Smith
100B Donna Smith
200A Eric Jones
200B Eric Jones
200C Eric Parks
200C Donna Smith
200D Eric Parks

Related Solutions

Eric exchanges farmland with an adjusted basis of $64,000 for a new acre of farmland with...
Eric exchanges farmland with an adjusted basis of $64,000 for a new acre of farmland with a $100,000 fair market value. In addition, he receives $20,000 of marketable securities. a.   What is the amount of gain realized by Eric? b.   What is the amount of gain recognized by Eric? c.    What is Eric's basis in the new farmland? d.   What is Eric's basis in the marketable securities?
Consider the following relation with structure EMPLOYEE_DATA (EmployeeID, EmployeeDegree, DepartmentID, DepartmentName) EmployeeID EmployeeDegree DepartmentID DepartmentName 001...
Consider the following relation with structure EMPLOYEE_DATA (EmployeeID, EmployeeDegree, DepartmentID, DepartmentName) EmployeeID EmployeeDegree DepartmentID DepartmentName 001 Mathematics 1004 R&D 001 Mathematics 1004 R&D 002 Info. Systems 2003 Cybersecurity 003 Computer Sci 5816 Software The functional dependencies are as follows: EmployeeID → EmployeeDegree, DepartmentID → DepartmentName, (EmployeeID,DepartmentID) → (EmployeeDegree, DepartmentName). Put the above relation into BCNF. For your solution use the shorthand TABLENAME (primarykey1, primarykey2, attribute1, attribute2).
Consider the following work breakdown structure: What is the probability of finishing the project at exactly...
Consider the following work breakdown structure: What is the probability of finishing the project at exactly 201 days? Time Estimates (days) Activity Precedes Optimistic Most Likely Pessimistic Start A,B - - - A C,D 44 50 56 B D 45 60 75 C E 42 45 48 D F 31 40 49 E F 27 36 39 F End 58 70 82 1. 0. 0.9. 0.6. 2.5.
Consider the following project:
Consider the following project:                                Y0         Y1       Y2         Y3         Y4        Y5         Y6         Y7 CF                            $0    –$100   $50        $80     $30       $30       $30     –$60 a) What is the IRR? b) What is the payback time?
Suppose that I have a relation with the following structure, where (EmployeeID, Department) is a composite...
Suppose that I have a relation with the following structure, where (EmployeeID, Department) is a composite primary key. DEPARTMENT (EmployeeID, EmployeeName, Department, TotalSales). Further suppose that the following functional dependencies exist (EmployeeID, Department) → (EmployeeName, TotalSales) EmployeeID → EmployeeName True or False: The above relation is in 2NF. True or False: A relation in second normal form is automatically in third normal form. True or False: If PartNumber → PartWeight, then PartNumber will be unique in a relation.
In a relation to ‘capital structure’ explain the relation between debt financing, equity financing and market...
In a relation to ‘capital structure’ explain the relation between debt financing, equity financing and market value of an organization. Then, provide two different examples of the relation.
In each of these exercises, consider the relation, CKs, and FDs. Determine if the relation is...
In each of these exercises, consider the relation, CKs, and FDs. Determine if the relation is in BCNF, and if not in BCNF give a non-loss decomposition into BCNF relations. The last 5 questions are abstract and give no context for the relation nor attributes. 1. Consider a relation Player which has information about players for some sports league. Player has attributes id, first, last, gender. id is the only CK and the FDs are: idfirst idlast idgender Player-sample data...
A project that provides annual cash flows of $20,000 for 5 years costs $64,000 today. a....
A project that provides annual cash flows of $20,000 for 5 years costs $64,000 today. a. If the required return is 14 percent, what is the NPV for this project?    b. Determine the IRR for this project.
What is Data Fragmentation. Consider the following Student relation. How would you fragment Student relation horizontally...
What is Data Fragmentation. Consider the following Student relation. How would you fragment Student relation horizontally based on Student’s Branch? Give a short discussion of your decision. StudentID Name DoB Branch Course ID Teacher Name 1 Amal 11/02/1998 Abha IT344 Dr Rana 1 Amal 11/02/1998 Abha IT340 Dr Khalid 2 Ahmed 15/11/2000 Jeddah IT210 Dr Ali 3 Aysha 09/09/2000 Riyadh IT344 Dr Rana 4 Bader 05/12/1997 Riyadh IT242 Dr Fahad
On July 1, Jones Corporation had the following capital structure. Common stock , par $1 ;...
On July 1, Jones Corporation had the following capital structure. Common stock , par $1 ; 8,000,000 authorized shares, 170,000 issued and outstanding. $170,000 Additional paid in capital. 110,000 Retained Earning ; 190,000 Treasury stock none Case 1 the board of directores feclaredcavd issued 100 percent stick divend when the stock price was $6 per share. Case 2 the board of directors voted 2-1 stock split. The stock price prior to the split was $6 per share Number of outstanding...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT