Given
Key Attribute : A , I
Non Key Attribute: B ,C ,D, E ,F ,G ,H ,J, K
Answer(1) NO, Relation R is not in BCNF.
Reason :
Partial Dependency is exist in the FD's.
Given below 3 FD's violate 2NF condition. so They are NOT in 2NF , 3NF and BCNF
? → ? ? ? ?,
? → ? ? ?,
? → ?,
Answer(2). Because of partial depency in FD's , Relaion R is not in BCNF.
Decomposition: ? = {?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?}
R1(A I K J) R2 ( AE BCDFGH)
? → J ? ? → ? ? → ? ? ? ?, ? → ? ? ?,
R1(A I K ) R11(I J) R2 ( A BCDE) R22 ( E FGH)
? ? → ? ? → J ? → ? ? ? ?, ? → ? ? ?
Answer(3). Yes the decomposition in step 2 is dependency preserving.
| R1(A I K ) | R11(I J) | R2 ( A BCDE) | R22 ( E FGH) |
| ? ? → ? | ? → J | ? → ? ? ? ?, | ? → ? ? ? |
all dependency are preserved
Q3: Given a relational schema R = {A,B,C,D,E,F,G,H,1,J,K} and a set of functional dependencies F {A B C D E, E F G H I J,AI →K} and a key(R) = AI = 1. Is R in BCNF? If yes, justify your answer [5 points] 2. If no, explain why and decompose R for two levels only [10 points] 3. Check whether the decomposition in step 2 dependency preserved or not [5 points]
Write the complete proof.
Consider the relational schemas given below and the respective sets of functional dependencies valid in the schemas For each one of the relational schemas, determine the highest normal form, which is valid for a schema. Justify your answer If a schema is not in BCNF, then decompose it into a minimum number of schemas so that each one of them is in BCNF. Justify your answers. Justification must include the derivations of minimal keys from the...
Language: SQL - Normalization and Functional
Dependencies
Part 4 Normalization and Functional Dependencies Consider the following relation R(A, B, C, D)and functional dependencies F that hold over this relation. F=D → C, A B,A-C Question 4.1 (3 Points) Determine all candidate keys of R Question 4.2 (4 Points) Compute the attribute cover of X-(C, B) according to F Question 43 (5 Points) Compute the canonical cover of F.Show each step of the generation according to the algorithm shown in class....
Discuss the normal forms for a relational database schema. What does functional dependency mean? Given is the relational schema R( A, B, C, D, E ) as well as the functional dependencies • AC → BDE • B → D • A → E. Convert the schema into its 3rd normal form.
DATABASE NORMALIZATION Answer the following questions for this relational schema and functional dependencies: R (A, B, C, D, E, F, G, H, I) A -> C ; C -> D ; A,C -> D B -> E,F ; A,B -> G ; G -> H,I ; A,G -> I List all candidate keys of R. (2 marks) Does the functional dependency A,C -> I hold? (1 mark) Does the functional dependency B -> F hold? (1 mark) Normalize R into...
1. Given the schema R(A,B,C,D,E) with the functional
dependencies
F = { A → C,D D B, E B, C + D, E E → B,C } Is this schema in BCNF? If it is, prove it. If not, find a BCNF decomposition and then prove that the decomposition is in BCNF. You must prove each step carefully.
The right side of any functional dependency must contain a candidate key. TRUE FALSE » Given a set of functional dependencies F, there always exists a canonical cover of F TRUE FALSE Some schemas cannot be transformed into BCNF FALSE TRUE Every schema can be transformed into 3NF, and the resulting schema is dependency- preserving TRUE FALSE . Any schema that is in BCNF is also in 3NF FALSE TRUE
The right side of any functional dependency must contain a...
Given the following Schema S = (R, FD) where R = (A, B, C, D, E, F) and FD contains the following dependencies: A -> BC B ->C C -> D D ->E C -> E E -> F DE -> F C -> F 1. Find a minimal cover of F 2. Find a key for the schema 3. Find a 3N decomposition of the schema that satisfies the lossless join decomposition and dependency preservation properties 4. Find a...
Consider a relational schema R(A, B, C, D) with a set of functional dependencies F = { D --> AB, C --> B, CD --> A, AD --> B, B --> A } a. Compute { B, C }+ b. Show that { C, D } is a candidate key of R. c. Is { R1(A, B, C), R2(C, D ) } a lossless-join decomposition? Why? d. Compute a minimal cover Fmin of F.
MySQL: Consider the following abstract relational schema: (A, B, C, D, E, F) Now assume the following functional dependencies: A -> B, C, D, E, F C -> B Note: This implies that A is a key. Is this database in 1NF, 2NF, 3NF, or BCNF? Why?