CS FundamentalsVery hardGATE CS (PYQ pattern)
An ER design has three strong entity sets, one weak entity set (identified through one of them), one multivalued attribute on a strong entity, one ternary many-to-many-to-many relationship, one 1:N relationship and a specialisation of a strong entity into two subclasses (mapped as a superclass table plus one table per subclass). Using the mapping with the fewest standard tables, how many relations result?
- A. 7
- B. 9
- C. 8
- D. 10
Correct answer: C. 8
Tables: 3 strong entities + 1 weak entity + 1 for the multivalued attribute + 1 for the ternary relationship + 2 subclass tables = 8. The 1:N relationship becomes a foreign key in the N-side table, and the weak entity's identifying relationship is folded into its own table.
More DBMS and SQL questions
- Which of the following statements about ARIES recovery are correct? I. It follows write-ahead logging: a log record must reach stable…
- Which of the following statements about two-phase locking variants are correct? I. Basic 2PL guarantees conflict-serializable schedules…
- R has 100 pages and S has 50 pages. Block nested-loop join uses 12 buffer pages: 10 for a block of the outer relation, 1 for the inner and…
- R(A, B, C, D, E, F) has the functional dependencies D → E, AD → B, D → E, DA → F, EC → D, ED → C. How many of the listed FDs violate BCNF…
- R(A, B, C, D, E) has the functional dependencies D → A, EA → C, D → C, D → E, BC → A. How many attributes appear in the left sides of a…
- R(A, B, C, D, E, F) has the functional dependencies F → B, C → A, BD → C, B → E, C → A, BC → A. How many superkeys does R have?