CS FundamentalsHardProduct-company MCQ pattern
R(A, B, C) with A → B and B → C. Which decomposition is lossless?
- A. R1(A), R2(B, C)
- B. R1(A, B), R2(B, C)
- C. R1(A, B), R2(C)
- D. R1(A, C), R2(B, C)
Correct answer: B. R1(A, B), R2(B, C)
A binary decomposition is lossless if the common attributes functionally determine one side. (AB) ∩ (BC) = B and B → C, so B is a key of R2. In (AC, BC) the common attribute C determines nothing. Decompositions with no common attribute are lossy.
More DBMS and SQL questions
- Is the schedule R1(A), R2(A), W1(A), W2(A) conflict serializable?
- Which isolation level prevents dirty reads and non-repeatable reads but may still allow phantom reads (in the SQL standard)?
- Which statement about basic two-phase locking (2PL) is correct?
- A B+ tree is built on a key of 9 bytes. A block is 1024 bytes and a block pointer is 6 bytes. What is the maximum order p (number of child…
- R(A, B, C, D) has A as its only candidate key. How many superkeys does R have?
- Table Emp(id, name, dept, salary, mgr) rows: (1, 'Asha', 'HR', 50000, NULL), (2, 'Ravi', 'IT', 70000, 1), (3, 'Meena', 'IT', 70000, 2)…