i) Indicate all the 3NF violations.
ii) Decompose the relations, as necessary, into collections of relations that are in 3NF.
a) R(A,B,C,D) with FD's AB --> C, C --> D, and D --> A.
f) R(A,B,C,D,E) with FD's AB --> C, C --> D, D --> B, and D --> E.
1)3NF Violation -
2)
a)R(A,B,C,D) with FD's AB --> C, C --> D, and D --> A.
C --> D and D --> A.
so we can write C --> A and D should not be super key
AB --> C and we got C --> A so we can write AB --> A where C should not be super key.
f) R(A,B,C,D,E) with FD's AB --> C, C --> D, D --> B, and D --> E.
form C --> D, D --> B we can say C --> B and D should not be a Super key
from C --> D, and D --> E we can say C --> E and D should not be a Super key
and from AB --> C and above C --> B and C --> E
we can write AB --> B or AB --> E
i) Indicate all the 3NF violations. ii) Decompose the relations, as necessary, into collections of relations...
4. (40 points) Identify the following relations that are in Third normal form (3NF)? If it is in 3NF, is it in BCNF? You must explain your answer to receive points. Also, for each question, pick one FD not in BCNF and decompose R into tables if it is not in BCNF (1) R(ABCD) FD's: ACD B;AC D D C;ACB (2) R(ABCD) FD's: AB C; ABD C;ABC D;ACD (3) R(ABCD) FD's: AB; B A;A D D B (4) R(ABCD) FD's:...
4. (40 points) Identify the following relations that are in Third normal form (3NF)? If it is in 3NF, is it in BCNF? You must explain your answer to receive points. Also, for each question, pick one FD not in BCNF and decompose R into tables if it is not in BCNF. (2) R(ABCD) FD's: AB-»C; ABD->C; ABC-> D; AC-ID (4) R(ABCD) FD's: C- B;A->B; CD -»A; BCD (5) R(ABCD) FD's: AD C;D-A;A-C;ABC A D, 4. (40 points) Identify the...
Are the following relations in BCNF? 3NF? (if R is not in BCNF, decompose it to BCNF; if R is not in 3NF, decompose it to 3NF) R(X,Y, Z,T,V): XY->Z, Y->T, Z->V R(X,Y,Z,T): X->Y, Y->Z, Z->T R(A,B,C): AB->C, B->A, C->B R(ABCD): BD->C, AB->D, AC->B, BD->A R(ABCD): AD->C, CD->B, BD->C R(ABCD): A->C, B->A, A->D, AD->C R(ABCD): A->D, C->A, D->B, AC->B R(XYZT): XYT->Z, ZT->X, XZ->Y, XZ->T R(XYZT): XY->Z, XYT->Z, XYZ->T, XZ->T R(XYZT): YT->Z, XY->T, XZ->Y, YT->X R(XYZT): YZ->X, XT->Z, ZT->Y, YT->Z
Given the following relation schemas and the sets of FD's: a- R(A,B,C,D) F={ABẠC,C7D, D´A, BC+C} b- R(A,B,C,D) F={BẠC, BD, AD>B} C- R(A,B,C,D) F={AB-C, DC+D, CD+A, AD+B} d- R(A,B,C,D) F={AB=C, C+D, D™B, DE} e- R(A, B, C, D, E) F= {AB+C, DB+E, AE>B, CD+A, ECD} In each case, (i) Give all candidate keys (ii) Indicate the BCNF violation Give the minimal cover and decompose R into a collection of relations that are BCNF. Is it lossless? Does it preserve the dependencies?...
For the following relation schema and set of FD's R(A,B,C,D) with FD's AB->C, B->D, CD->A, AD->B Indicate the BCNF violations, and decompose the relations into relations that are in BCNF.
[1] [30 points] Consider the relation R City, Street, Zip Code), where a tuple (c, s, z) is in R only if city c has a building with street s, and z is the zipcode for that address in that city. It is assumed that the nontrivial functional dependencies are: Street → Zip Code ZipCode → City City, [a] [b] [C] [d] [e] Determine all possible keys for R. Indicate all possible BCNF and 3NF violations. Decompose R as necessary...
Decompose the given relation into relations in 2NF. For each of the new relations, draw a functional dependency diagram, and state if it is in 3NF and why. If your answer is no, describe how to normalise the relation to be in 3NF (c) The relation appointment is given below: appointment (patientID, patientName, patientAddress, aDate, aTime, nurseiD, nurseName, notes) where the primary key is underlined. It records the details of patient appointments with nurses. (i) Draw the functional dependency diagram...
Databases Consider the following functional dependencies that hold on R(ABCDEF): AB-> CD, E -> C, B -> EF a) Is R in 3NF? b) Explain your answer in detail and decompose the relation, as necessary, into a collection of relations that are in 3NF. c) Make sure you first find all the key(s) of R so that you will be able to tell whether an attribute is prime. *Please answer all parts of this question in detail for credit.
1. Map the below ERD into a set of relations in at least Third Normal Form (3NF). You must ensure that your relations meet 3NF. Show your working. 2. List all the functional dependencies present in the relation i d leac ne Cowse Amociate Student Collec ri Maru ch ug i d leac ne Cowse Amociate Student Collec ri Maru ch ug
Consider a relation R with ve attributes A, B, C, D, and E. You are given the following functional dependencies: A->B, BC->E, and ED->A. (a) List all keys for R. (10 points) (b) Is R in BCNF? If it is, explain why. If is not, decompose it into a collection of BCNF relations. (20 points) (c) Is R in 3NF? If it is, explain why. If it is not, convert it into a collection of 3NF relations. (20 points)