In database design, what is the difference between single-table inheritance and class-table inheritance?

  • Creating separate tables for each subclass
  • Embedding all attributes in a single table
  • Storing subclasses in different databases
  • Using a combination of single and multiple tables
Single-table inheritance involves embedding all attributes of the superclass and subclasses into a single table. This approach simplifies queries but may lead to null values and decreased performance for large datasets.
Add your answer
Loading...

Leave a comment

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