Scenario: A university has staff members who can be either professors or administrative staff. How would you model this scenario using superclass and subclass relationships?

  • Create separate databases for professors and administrative staff
  • Create separate tables for professors and administrative staff
  • Use a single table for all staff members
  • Use a superclass-subclass relationship with a staff superclass and professor/administrative staff subclasses
In this scenario, the best approach is to use a superclass-subclass relationship. By having a staff superclass and professor/administrative staff subclasses, you can inherit common attributes from the superclass while allowing specific attributes for each subclass. This promotes data integrity and reduces redundancy.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *