Question 31
MediumWhen is a relation in BCNF?
- A.
When it is in 2NF
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
DBMS
When is a relation in BCNF?
When it is in 2NF
For every non-trivial functional dependency X → Y, X is a super key
When every column is a key
When it has no multivalued attributes
Sign up free to see the answer and a step-by-step explanation.
For R(A, B, C) with A → B and B → C, what is the closure A⁺?
{A, B}
{A}
{B, C}
{A, B, C}
Sign up free to see the answer and a step-by-step explanation.
R(A, B, C, D) has functional dependencies A → B, B → C and C → D. What is the candidate key?
AB
D
B
A
Sign up free to see the answer and a step-by-step explanation.
Which property must a decomposition have so that joining the parts gives back exactly the original table?
Lossless join
Atomicity
Dependency preservation
Durability
Sign up free to see the answer and a step-by-step explanation.
When is a decomposition of R into R1 and R2 lossless?
Always
When R1 and R2 have no attributes in common
When the common attributes R1 ∩ R2 form a key of R1 or of R2
When R1 and R2 have the same number of rows
Sign up free to see the answer and a step-by-step explanation.
R(A, B, C, D) has FDs A → B and B → C, and the key is AD. What is the highest normal form R satisfies?
1NF
3NF
BCNF
2NF
Sign up free to see the answer and a step-by-step explanation.
R(A, B, C) has key A and FDs A → B, B → C. What is the highest normal form?
3NF
BCNF
1NF
2NF
Sign up free to see the answer and a step-by-step explanation.
R(A, B, C, D) has FDs A → BCD and BC → A. What are the candidate keys?
A only
BC only
ABCD only
A and BC
Sign up free to see the answer and a step-by-step explanation.
For R(A, B, C, D, E) with FDs A → B, BC → D and D → E, what is (AC)⁺?
ABCDE
ABC
ACE
ABCD
Sign up free to see the answer and a step-by-step explanation.
For R(A, B, C, D) with FDs A → B, B → C and C → A, how many candidate keys are there?
1: AD
4
3: AD, BD, CD
2: AD and BD
Sign up free to see the answer and a step-by-step explanation.