1.

When an entity instance must be a member of only one sub-type, it is which of the following?(a) Disjoint with total specialization(b) Disjoint with partial specialization(c) Overlap with total specialization(d) Overlap with partial specializationThis question was addressed to me during an online interview.This intriguing question originated from The Atomic Data Models and Business Models in section Planning Oracle Applications of Oracle

Answer»

The correct option is (a) Disjoint with TOTAL specialization

The explanation is: GradStudent (_id_, NAME, gradStuff) UndergradStudent (_id_, name, underGradStuff) Professor (_id_, name) TEACHES(_prof_id_, _stud_id_)

Considering that the relational database above is meant to represent total disjoint specialization, i.e. there is no table Student but rather two completely separate ones, when writing this in SQL in ORDER to implement the database, how would I fetch the student id for the Teaches table? I cannot figure out how to MAKE a foreign key from two different tables.



Discussion

No Comment Found

Related InterviewSolutions