CS FundamentalsHardGATE CS · TCS Digital

An ER diagram has entities Student, Course and Prof. Student and Course are related by Enrols (many-to-many, with attribute grade). Each Course is taught by exactly one Prof, and a Prof can teach many courses. What is the minimum number of tables in the relational schema?

  1. A. 3
  2. B. 4
  3. C. 5
  4. D. 6

Correct answer: B. 4

Student, Course (holding the Prof foreign key because the relationship is many-to-one with total participation) and Prof need one table each, and Enrols needs its own table: 4.

More DBMS and SQL questions

Exams that ask this topic