Professional Documents
Culture Documents
com
Database Design
9-4: Subtype Mapping
Practice Activities
Objectives
• State and apply the table, column, identifiers, relationship, and integrity constraint rules
for mapping:
o supertype implementations
o subtype implementations
o supertype and subtype arc implementations
Try It / Solve It
1. Transform the PARTNER supertype in the following model for a DJ business, using Single-
Table/Supertype Implementation.
PARTNER
#id
*first name
*last name
EVENT PLANNER
*expertise
DJ
*specialty
supervise MANAGER
°authorized expense limit
OTHER
supervised by
Copyright © 2019, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their
respective owners.
2
2. Transform the STAFF supertype in the following restaurant model, using Single-Table/Supertype
Implementation or Two-Table/Subtype Implementation.
STAFF
#id
*first name
*last name
*date of birth
*salary ORDER TAKER
*overtime rate
COOK
*training
supervise
MANAGER
*budget
*target revenue
OTHER
supervised by
Copyright © 2019, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their
respective owners.
3
3. Identify the database rules for each part of the database implementations below.
Supertype implementations
• Table
• Column
• Identifiers
• Relationship
• Integrity constraint rules
Subtype implementations
• Table
• Column
• Identifiers
• Relationship
• Integrity constraint rules
Arc implementations
• Table
• Column
• Identifiers
• Relationship
• Integrity constraint rules
Copyright © 2019, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their
respective owners.