CS FundamentalsHardGATE CS
R(Emp, Skill, Lang) satisfies Emp ↠ Skill (so also Emp ↠ Lang), and it is decomposed into the 4NF relations (Emp, Skill) and (Emp, Lang). Employee Rao has 3 skills and 4 languages. How many tuples about Rao are there in R, and in the two 4NF relations together?
- A. 12 and 7
- B. 7 and 7
- C. 12 and 12
- D. 7 and 12
Correct answer: A. 12 and 7
The MVD forces every skill to pair with every language, so R stores 3 × 4 = 12 tuples for Rao. After decomposition he needs only 3 + 4 = 7. Removing this redundancy is the point of 4NF.
More DBMS and SQL questions
- R(a) = {1, 2, 3} and S(a) = {2, 3, 3, 4} (S is a bag). How many rows does SELECT FROM R FULL OUTER JOIN S ON R.a = S.a return? (Checked in…
- A relation has 6 attributes. What is the largest possible number of candidate keys it can have under some set of functional dependencies?
- In multiple-granularity locking, how many of these lock-mode pairs (held, requested) on the same node are compatible? IS–IX, IX–IX, S–IX…
- Which statement correctly states the write-ahead logging (WAL) rule?
- Which statement about compensation log records (CLRs) in ARIES is correct?
- Which locking scheme guarantees BOTH freedom from deadlock and schedules without cascading rollback?