Question

In: Computer Science

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).

Solutions

Expert Solution

Hey! my answer is given below ..... to appreciate my work please give positive Rating.....

Determine BCNF:
For relation R to be in BCNF, all the functional dependencies (FDs) that hold in R need to satisfy property that the determinants X are all superkeys of R. i.e. if X->Y holds in R, then X must be a superkey of R to be in BCNF.

We have relation with structure EMPLOYEE_DATA (EmployeeID, EmployeeDegree, DepartmentID, DepartmentName).

The functional dependencies are as follows:

  • EmployeeID → EmployeeDegree,
  • DepartmentID → DepartmentName
  • (EmployeeID,DepartmentID) → (EmployeeDegree, DepartmentName).

Let,

  • R is EMPLOYEE_DATA relation.
  • A is EmployeeID
  • B is EmployeeDegree
  • C is DepartmentID
  • D is DepartmentName

so we have R (A, B, C, D) and functional dependencies are A -->  B and C --> D and AC --> BD

Decompose R into BCNF form:

  • If R is not in BCNF, we decompose R into a set of relations S that are in BCNF.
  • This can be accomplished with a very simple algorithm:
  1. Initialize S = {R}
  2. While S has a relation R' that is not in BCNF do:   
  • Pick a FD: X->Y that holds in R' and violates BCNF
  •   Add the relation XY to S
  •   Update R' = R'-Y

3,) Return S

Now, Decompose R(A,B,C,D)

1.) S = {ABCD} // Intialization S = {R}
2.) S = {ACD, AB} // Pick FD: A->B which violates BCNF
3.) S = {AC, AB, CD} // Pick FD: C->D which violates BCNF

4.) S = {AC, AB, CD} // Pick FD: AC->BD now, Relation is R is already decomposed in 3 Relations.
// Return S as all relations are in BCNF

Now, new Decomposed Relations are:

  1. R1 (AB)
  2. R2 (CD)
  3. R3 (AC)


Thus,Relation  EMPLOYEE_DATA (EmployeeID, EmployeeDegree, DepartmentID, DepartmentName). is decomposed into a set of relations:

  • EMPLOYEE_DATA (EmployeeID, EmployeeDegree)
  • DEPARTMENT_DATA (DepartmentID, DepartmentName)
  • EMPLOYEE_DEPARTMENT_TABLE (EmployeeID, DepartmentID)

that satisfies BCNF.

1.)  EMPLOYEE_DATA Table

EmployeeID EmployeeDegree
001 Mathematics
002 Info. Systems
003 Computer Sci

2.)  DEPARTMENT_DATA Table

DepartmentID DepartmentName
1004 R&D
2003 Cybersecurity
5816 Software

3.) EMPLOYEE_DEPARTMENT_TABLE

EmployeeID DepartmentID
001 1004
002 2003
003 5816

thanks.....................


Related Solutions

Given the ?(?) = 30? .001? and ?(?) = 80? −.001? find: d) The equilibrium point....
Given the ?(?) = 30? .001? and ?(?) = 80? −.001? find: d) The equilibrium point. e) Determine the consumer’s surplus. Show the integral used. f) Determine the producer’s surplus. Show the integral used.
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...
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...
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
Explain the relation between organization structure and responsibilty centers.
Explain the relation between organization structure and responsibilty centers.
Consider a relation R (ABCDEFGH) with the following functional dependencies: ACD --> EF AG --> A...
Consider a relation R (ABCDEFGH) with the following functional dependencies: ACD --> EF AG --> A B --> CFH D --> C DF --> G F --> C F --> D Find minimal cover and identify all possible candidate keys. In order to receive full credit, please list each step taken and the rules that you applied.
Consider the following universal relation THE following database schema is in 4NF. What can you infer...
Consider the following universal relation THE following database schema is in 4NF. What can you infer about multi-valued dependencies? A C D A B C E E F A-It does not have multi-valued dependencies. B-The multi-valued dependency A ->-> C does not hold. If the multi-valued dependency A ->-> C held, the database would not be in 4NF. C-The multi-valued dependency A ->-> B does not hold. If the multi-valued dependency A ->-> B held, the database would not be...
Consider the following molecule. Draw the Lewis Structure and use that to fill in the following...
Consider the following molecule. Draw the Lewis Structure and use that to fill in the following chart: NO−2 Number of Valence e- (Whole Structure) Areas of e- Density Around Central Atom: Electronic Geometry: # Bonding Areas (Central Atom): # Non-Bonding Areas (Central Atom): Molecular Geometry Bond Angles (Central Atom) Polar Bonds? Polar Molecule? Any Pi (Double/Triple) Bonds? Explain if possible please
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT