Section 4 Flashcards
You can typically associate ‘………………’ of something with supertypes and subtypes
choices
- food order types (eat in, to go)
- grocery bag types (paper, plastic)
- payment types (check, cash, credit)
Often some instances of an entity have attributes and/or relationships that other instances do not have
- Imagine a business which needs to track payments from customers
- Customers can pay by cash, by check, or by credit card
Sometimes it makes sense to subdivide an entity into ………….. In this case, the entity is called a “……………” and each group is called a “………….”
subtypes / supertype / subtype
(creating supertype and subtype is may be the case when a group of instances has special properties, such as ………… or ……………….. that exist only for that group
attributes / relationships
- Should we create a single PAYMENT entity or three separate entities CASH, CHECK, and CREDIT CARD?*
- And what happens if in the future we introduce a fourth method of payment?*
A subtype
- Inherits all ……….. of the supertype
- Inherits all ………… of the supertype
- Is ………. ………. the supertype
- Never ………. ………
- Usually has its own …………. or ………..
- May have ……….. of its own
- attributes
- relationships
- drawn within
- exists alone
- attributes / relationships
- subtypes
When an ER model is complete, subtypes never stand alone. In other words, if an entity has a subtype, a second subtype must also exist, this makes sense. A single subtype is exactly the same as the supertype
R 2
This idea leads to the two subtype rules:
- …………: Every instance of the supertype is also an instance of one of the subtypes. All subtypes are listed without omission
- ……….. ………….: Each instance of a supertype is an instance of only one possible subtype
- Exhaustive
- Mutually Exclusive
At the conceptual modeling stage, it is good practice to include an ………. subtype to make sure that your subtypes are exhaustive – that you are handling every instance of the supertype
OTHER
When a need exists within the business to show …………. and …………. between instances, then subtype
similarities / differences
being able to subtype is not the issue—having a reason to subtype is the issue
When modeling supertypes and subtypes, you can use three questions to see if the subtype is correctly identified:
- Is this subtype a ………… of supertype?
- Have I covered all possible cases? (…………..)
- Does each instance fit into one and only one subtype? (………… ………..)
- kind
- exhaustive
- mutually exclusive
You can nest subtypes. For ease of reading – “readability” – you would usually show subtypes wit only ………. levels, but there is no rule that would stop you from going beyond two levels
two
………… …………. rules indicate the types of information to be stored (attributes) and how the information elements interrelate (relationships)
Structural business
Structural business rules can nearly always be diagrammed in the ERD
Procedural rules deal with the prerequisites, ……….., ……….., or …………. requirements of a business
steps / processes / workflow
Many procedural business rules are related to time: event A must happen before event B