CS FundamentalsHardProduct placement · DBMS interview
Teach(course, teacher, book) satisfies course ↠ teacher | book, and the course DBMS has 3 teachers and 4 books. How many tuples must Teach store for DBMS, and how many tuples do the 4NF tables (course, teacher) and (course, book) store for it in total?
- A. 12 and 12
- B. 7 and 7
- C. 12 and 7
- D. 7 and 12
Correct answer: C. 12 and 7
The MVD forces every teacher–book pair: 3 × 4 = 12 tuples. After decomposition: 3 + 4 = 7 tuples, which is the redundancy 4NF removes.
More DBMS and SQL questions
- For the schedule R1(B), R1(C), W3(A), W1(C), R2(A), W2(C), R3(B), how many distinct serial schedules are conflict-equivalent to it?
- For the schedule R1(B), W3(A), W1(B), W2(B), R2(A), W3(C), R3(C), R2(C), how many distinct serial schedules are conflict-equivalent to it?
- R(A, B, C, D, E, F) has functional dependencies F → E, E → BC, CE → F, C → F. Which of the following is the complete set of candidate keys…
- R(A, B) = {(2, 1), (2, 2), (3, 3), (3, 4)} and S(B, C) = {(1, 5), (2, 5), (3, 5), (3, 6), (3, 7)}. How many tuples does σ{R.B ≠ S.B}(R ×…
- Table Takes(sid, cid, marks) rows: (1, 'C1', 80), (1, 'C2', NULL), (2, 'C1', 65), (3, 'C2', 90), (3, 'C3', 75), (5, 'C1', 50). What does…
- Table Stu(sid, sname) rows: (1, 'Om'), (2, 'Pia'), (3, 'Raj'), (4, 'Sia'). Table Takes(sid, cid, marks) rows: (1, 'C1', 80), (1, 'C2'…