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
Normalization Questions With Answers
PDF
84% (31)
Normalization Questions With Answers
6 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
Schema Refinement & Normalization Theory
PDF
No ratings yet
Schema Refinement & Normalization Theory
26 pages
Examples and Exercises of BCNF
PDF
No ratings yet
Examples and Exercises of BCNF
3 pages
Some Solutions Chapter7
PDF
No ratings yet
Some Solutions Chapter7
3 pages
Stop CV Format
PDF
No ratings yet
Stop CV Format
19 pages
24 - Computer Science & Applicaions
PDF
No ratings yet
24 - Computer Science & Applicaions
4 pages
Boyce Codd Normal Form (BCNF)
PDF
No ratings yet
Boyce Codd Normal Form (BCNF)
28 pages
Sol 2
PDF
No ratings yet
Sol 2
5 pages
DBMS Sol
PDF
No ratings yet
DBMS Sol
11 pages
Assignment 8 - Sao Chép
PDF
No ratings yet
Assignment 8 - Sao Chép
2 pages
Assignment 2
PDF
No ratings yet
Assignment 2
6 pages
3NF and BCNF Decompositions
PDF
No ratings yet
3NF and BCNF Decompositions
29 pages
Tutorial 9 DB Normalization
PDF
No ratings yet
Tutorial 9 DB Normalization
21 pages
Normal Forms
PDF
No ratings yet
Normal Forms
4 pages
hw4 Answerkey
PDF
No ratings yet
hw4 Answerkey
6 pages
CMPT 354 Assignment 3
PDF
No ratings yet
CMPT 354 Assignment 3
7 pages
Decomposition: April 9, 2012
PDF
No ratings yet
Decomposition: April 9, 2012
11 pages
Chap7 Practice Key
PDF
No ratings yet
Chap7 Practice Key
5 pages
Assn4 Sample Solution
PDF
No ratings yet
Assn4 Sample Solution
4 pages
7.1 Binary Decomposition
PDF
No ratings yet
7.1 Binary Decomposition
11 pages
Nguyen Van Phong HE190611 LAB2
PDF
No ratings yet
Nguyen Van Phong HE190611 LAB2
4 pages
Norm Ans
PDF
No ratings yet
Norm Ans
7 pages
Boyce Codd Normal Form (BCNF)
PDF
No ratings yet
Boyce Codd Normal Form (BCNF)
24 pages
550 Lecture16
PDF
No ratings yet
550 Lecture16
18 pages
550 Lecture15
PDF
No ratings yet
550 Lecture15
28 pages
Mock
PDF
No ratings yet
Mock
20 pages
HE190952 PhamThuaGiap Lab2 DBI202
PDF
No ratings yet
HE190952 PhamThuaGiap Lab2 DBI202
3 pages
DBMS W06 Pas
PDF
No ratings yet
DBMS W06 Pas
14 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
Untitled Document
PDF
No ratings yet
Untitled Document
42 pages
Lab 2 - 2023
PDF
No ratings yet
Lab 2 - 2023
4 pages
Database Management System Weekly Test 02 Test Paper
PDF
No ratings yet
Database Management System Weekly Test 02 Test Paper
6 pages
HW 2 Solutions
PDF
No ratings yet
HW 2 Solutions
5 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
7 2 Decomposition PDF
PDF
No ratings yet
7 2 Decomposition PDF
7 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
Ch7 Answers
PDF
No ratings yet
Ch7 Answers
5 pages
GATE Questions
PDF
100% (1)
GATE Questions
100 pages
3NF - Canonical Cover
PDF
No ratings yet
3NF - Canonical Cover
3 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
Database Management System: Assignment 4: September 2, 2018
PDF
No ratings yet
Database Management System: Assignment 4: September 2, 2018
10 pages
4 Normal Forms Post 3
PDF
No ratings yet
4 Normal Forms Post 3
63 pages
Hw7 Sol Motro
PDF
100% (1)
Hw7 Sol Motro
6 pages
7.lossless & Lossy
PDF
No ratings yet
7.lossless & Lossy
21 pages
DBMS Questions: 1. Define Functional Dependency (FD) and Provide Two Real-World Examples
PDF
No ratings yet
DBMS Questions: 1. Define Functional Dependency (FD) and Provide Two Real-World Examples
6 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
GATE Dbms Normalization
PDF
No ratings yet
GATE Dbms Normalization
7 pages
Assignment - 3 - 1
PDF
No ratings yet
Assignment - 3 - 1
2 pages
Normalization in Database Manangement System
PDF
No ratings yet
Normalization in Database Manangement System
12 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
Lect 9 Decomposition
PDF
No ratings yet
Lect 9 Decomposition
35 pages
Chapter 5 - B - DBDesign - II
PDF
No ratings yet
Chapter 5 - B - DBDesign - II
63 pages
Dbms Mid-2 Unit-4 Longs Answers
PDF
No ratings yet
Dbms Mid-2 Unit-4 Longs Answers
28 pages