Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
36 views
2 pages
Cat-2 Dbms 3rd Unit Prob
Uploaded by
Pamusainagaharshavardhan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Download
Save
Save Cat-2 Dbms 3rd Unit Prob For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
0 ratings
0% found this document useful (0 votes)
36 views
2 pages
Cat-2 Dbms 3rd Unit Prob
Uploaded by
Pamusainagaharshavardhan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Carousel Previous
Carousel Next
Download
Save
Save Cat-2 Dbms 3rd Unit Prob For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
Download now
Download
You are on page 1
/ 2
Search
Fullscreen
Schema Refinement and Normal Forms 263 (©) Both B > © and D — A cause BCNF violations. The decomposition: AD, BO, BD (obtained by first decomposing to AD, BCD) is BCNF and lossless and join-preserving, 3. (a) Candidate keys: ABC, BCD (b) Ris in 3NF but not BONF. (©) ABCD is not in BONE since D + A and D is not a key, However if we split up Ras AD, BCD we cannot preserve the dependency ABC — D. So there is no BCNF decomposition. 4. (a) Candidate keys: A (b) Ris in 2NF but not 3NF (because of the FD: BC + D) {c) BC + D violates BONE since BC' does not contain a key. So we split up as in: BCD, ABC. 5. (a) Candidate keys: AB, BC, CD, AD (b) Ris in SNF but not BONF (because of the FD: © > A) (c) © + A and D — B both cause violations. So decompose into: AC, BCD but this does not preserve AB —>» C and AB > D, and BCD is still not BCNF because D + B. So we need to decompose further into: AC, BD, CD. However, when we attempt to revive the lost functioanl dependencies by adding ABC and ABD, we that these relations are not in BCNF form. Therefore, there is no BCNF decomposition. Exercise 19.8 Consider the attribute set R = ABCDEGI and the FD set F- , AG» B, AD > B, B+ D, BC+ A, B > Gh. ABS 1. For each of the following attribute sets, do the following: (i) Compute the set of dependencies that hold over the set and write down a minimal cover. (i) Name the strongest normal form that is not violated by the relation containing these attributes. (ii) Decompose it into a collection of BCNF relations if it is not in BNF. {a) ABC, (b) ABCD, (c) ABCEG, (a) DCEGH, (e) ACEH 2. Which of the following decompositions of R — ABCDEG, with the same set of dependencies F, is (a) dependency-preserving? (b) lossless-join? (a) {AB, BC, ABDE, EG} (b) {ABG, ACDE, ADG} Answer 19.8 1. (@) i RI= ABC The FD’s are AB + C, AC > B, BC > A264 () (eo) @ 2 (a) (b) CHAPTER 19 ii, This is already a minimal cover iii. This is in BNF since AB, AC and BC are candidate keys for RI. (In fact, these are all the candidate keys for Ri). i, R2 = ABCD: The FD's are AB > C, AC > B, B > D, BC > A ii, This is a minimal cover already. iii, The keys are: AB, AC, BC: R2is not in BCNF or even 2NF because of the FD, B + D (B is a proper subset of a key!) However, it is in INF. Decompose as in: ABC, BD. This is a BCNF decomposition. i. R¥= ABCEG, The FDs are AB + C, AC —+ B, BC > A, BG. ii, This is in minimal cover already, iii. The keys are: ABB, ACE, BCE. Ibis not even in 2NF since B is a proper subset of the keys and there is a FD > G. It is in INF . Decompose as in: ABE, ABC, BG. This is a BCNF decompostion, i, Ri = DOBGH, The FD is E > G, ii. This is in minimal cover already. iii, The key is DOBH ; It is not in BCNF since in the FD EB > G, Bisa subset of the key and is not in 2NF either. It is in 1 NF Decompose as im: DCEH, EG i. RS = ACEH; No FDs exist. ii, This is a minimal cover: iii. Key is ACEH itself iv. Ibis in BONF form, The decomposition. { AB, BC, ABDE, EG } is not lossless. ‘To prove this consider the following instance of R {(a1,b, ¢1,di,€1,91), (a2,b, 2, d2, €2, 92)} Because of the functional dependencies BC — A and AB > C,, a; # ay if and only if c; # cz. It is easy to that the join AB >a BC contains 4 tuples: {(e1, ex), (0156, 62), (aa,Byer), (@2,6,¢a)} So the join of AB, BC, ABDE and EG will contain at least 4 tuples, (actually it contains 8 tuples) so we have a lossy decomposition here ‘This decomposition does not preserve the FD, AB — C (or AC + B) The decomposition {ABC, ACDE, ADG } is lossless. Intuitively, this is because the join of ABC, ACDE and ADG can be constructed in two steps; first construct the join of ABC and ACDE: this is lossless because their {attribute) intersection is AC which is a key for ABCDE (im fact ABCDEG) so this is lossless. Now join this intermediate join with ADG. This is also lossless because the attribute intersection is is AD and AD —» ADG. So by the test mentioned in the text this step is also a lossless decomposition.
You might also like
Norm Ans
PDF
No ratings yet
Norm Ans
7 pages
Tutorial 9 DB Normalization
PDF
No ratings yet
Tutorial 9 DB Normalization
21 pages
809purl_Databases_TYS-2026
PDF
No ratings yet
809purl_Databases_TYS-2026
25 pages
Unit 3 - Normalization
PDF
No ratings yet
Unit 3 - Normalization
59 pages
Chapter 5 - B_DBDesign_II
PDF
No ratings yet
Chapter 5 - B_DBDesign_II
63 pages
Boyce Codd Normal Form (BCNF)
PDF
No ratings yet
Boyce Codd Normal Form (BCNF)
28 pages
7.lossless & Lossy
PDF
No ratings yet
7.lossless & Lossy
21 pages
7 2 Decomposition PDF
PDF
No ratings yet
7 2 Decomposition PDF
7 pages
Chap7 Practice Key
PDF
No ratings yet
Chap7 Practice Key
5 pages
C20.0046: Database Management Systems Lecture #7: Matthew P. Johnson Stern School of Business, NYU Spring, 2004
PDF
No ratings yet
C20.0046: Database Management Systems Lecture #7: Matthew P. Johnson Stern School of Business, NYU Spring, 2004
27 pages
DBMS Module 3 Complete Solutions
PDF
No ratings yet
DBMS Module 3 Complete Solutions
1 page
24 - Computer Science & Applicaions
PDF
No ratings yet
24 - Computer Science & Applicaions
4 pages
Dbms Cat - 2 Prob 4)
PDF
No ratings yet
Dbms Cat - 2 Prob 4)
1 page
550_lecture16
PDF
No ratings yet
550_lecture16
18 pages
550_lecture15
PDF
No ratings yet
550_lecture15
28 pages
Smu CS7330_Howework2
PDF
No ratings yet
Smu CS7330_Howework2
7 pages
DBMS Module 2 Notes
PDF
No ratings yet
DBMS Module 2 Notes
40 pages
Schema Refinement and Normal Forms: Database Management Systems, 3ed, R. Ramakrishnan and J. Gehrke 1
PDF
No ratings yet
Schema Refinement and Normal Forms: Database Management Systems, 3ed, R. Ramakrishnan and J. Gehrke 1
20 pages
Database Management System Weekly Test 02 Test Paper
PDF
No ratings yet
Database Management System Weekly Test 02 Test Paper
6 pages
DBMS_W06_PAS
PDF
No ratings yet
DBMS_W06_PAS
14 pages
NguyenVanPhongHE190611LAB2
PDF
No ratings yet
NguyenVanPhongHE190611LAB2
4 pages
3NF and BCNF Decompositions
PDF
No ratings yet
3NF and BCNF Decompositions
29 pages
Assignment 2
PDF
No ratings yet
Assignment 2
6 pages
1. Lect 9 Decomposition
PDF
No ratings yet
1. Lect 9 Decomposition
35 pages
assn4-sample-solution
PDF
No ratings yet
assn4-sample-solution
4 pages
Some Solutions Chapter7
PDF
No ratings yet
Some Solutions Chapter7
3 pages
Examples and Exercises of BCNF
PDF
No ratings yet
Examples and Exercises of BCNF
3 pages
Stop CV Format
PDF
No ratings yet
Stop CV Format
19 pages
Untitled Document
PDF
No ratings yet
Untitled Document
42 pages
4 Normal Forms Post 3
PDF
No ratings yet
4 Normal Forms Post 3
63 pages
7.1 Binary Decomposition
PDF
No ratings yet
7.1 Binary Decomposition
11 pages
Schema Refinement and Normalization: Nobody Realizes That Some People Expend Tremendous Energy Merely To Be Normal
PDF
No ratings yet
Schema Refinement and Normalization: Nobody Realizes That Some People Expend Tremendous Energy Merely To Be Normal
22 pages
Normal Forms
PDF
No ratings yet
Normal Forms
4 pages
HE190952_PhamThuaGiap_Lab2_DBI202
PDF
No ratings yet
HE190952_PhamThuaGiap_Lab2_DBI202
3 pages
Schema Refinement & Normalization Theory
PDF
No ratings yet
Schema Refinement & Normalization Theory
26 pages
Decomposition: April 9, 2012
PDF
No ratings yet
Decomposition: April 9, 2012
11 pages
Normalization in Database Manangement System
PDF
No ratings yet
Normalization in Database Manangement System
12 pages
Ch7 Answers
PDF
No ratings yet
Ch7 Answers
5 pages
Boyce Codd Normal Form (BCNF)
PDF
No ratings yet
Boyce Codd Normal Form (BCNF)
24 pages
Dbms Mid-2 Unit-4 Longs Answers
PDF
No ratings yet
Dbms Mid-2 Unit-4 Longs Answers
28 pages
Schema Refinement and Normalization: Reasoning About Fds (Review) Rules of Inference (Review)
PDF
No ratings yet
Schema Refinement and Normalization: Reasoning About Fds (Review) Rules of Inference (Review)
5 pages
Assignment 8 - Sao chép
PDF
No ratings yet
Assignment 8 - Sao chép
2 pages
1748339884
PDF
No ratings yet
1748339884
6 pages
Module - III (A&B)
PDF
No ratings yet
Module - III (A&B)
80 pages
GATE Dbms Normalization
PDF
No ratings yet
GATE Dbms Normalization
7 pages
Normalization Questions With Answers
PDF
84% (31)
Normalization Questions With Answers
6 pages
Bilal DBMS Unit-5
PDF
No ratings yet
Bilal DBMS Unit-5
36 pages
DBMS Sol
PDF
No ratings yet
DBMS Sol
11 pages
CMPT 354 Assignment 3
PDF
No ratings yet
CMPT 354 Assignment 3
7 pages
Mock
PDF
No ratings yet
Mock
20 pages
Previous GATE Questions With Solutions On DBMS (Normalization) - CS/IT
PDF
100% (3)
Previous GATE Questions With Solutions On DBMS (Normalization) - CS/IT
7 pages
Module - 2
PDF
No ratings yet
Module - 2
43 pages
HW 2 Solutions
PDF
No ratings yet
HW 2 Solutions
5 pages
Bilal Dbms Unit-4
PDF
No ratings yet
Bilal Dbms Unit-4
65 pages
Assignment - 3 - 1
PDF
No ratings yet
Assignment - 3 - 1
2 pages
GATE Questions
PDF
100% (1)
GATE Questions
100 pages
3NF - Canonical Cover
PDF
No ratings yet
3NF - Canonical Cover
3 pages
Module - II A
PDF
No ratings yet
Module - II A
94 pages
Sol 2
PDF
No ratings yet
Sol 2
5 pages
Lab 2 - 2023
PDF
No ratings yet
Lab 2 - 2023
4 pages
Database Management System: Assignment 4: September 2, 2018
PDF
No ratings yet
Database Management System: Assignment 4: September 2, 2018
10 pages
hw4 Answerkey
PDF
No ratings yet
hw4 Answerkey
6 pages
Hw7 Sol Motro
PDF
100% (1)
Hw7 Sol Motro
6 pages