CS FundamentalsModerateGATE CS · PSU (ISRO/BARC)

Employee(eid, name) has a recursive one-to-many relationship 'manages' (a manager manages many employees; each employee has at most one manager). What is the minimum number of tables for this design?

  1. A. 0 — recursive relationships cannot be mapped
  2. B. 1
  3. C. 3
  4. D. 2

Correct answer: B. 1

Add a nullable foreign key mgr_eid in Employee referring to Employee itself; no separate table is needed for a 1:N recursive relationship.

More DBMS and SQL questions

Exams that ask this topic