chapter 4 Flashcards
what is cardinality
A property of an end of a relationship between X and Y that describes how many of X is related to Y
what is a relationship
It is the connection or association between objects
what is optionality
A property of an end of a relationship between X and Y that describes whether X must be or may be related to Y
when does it make sense to subdivide an entity
when does it make sense to subdivide an entity
This may be the case when a group of instances has special properties, such as attributes or relationships that exist only for that group
in this case the entity is called super type and the groups are called subtypes
what are the characteristics of subtypes
- -> Inherits all attributes of the supertype
- -> Inherits all relationships of the supertype
- -> Usually has its own attributes or relationships
- -> Is drawn within the supertype
- -> Never exists alone
- -> May have subtypes of its own
when an ER model is complete subtypes ____________-
never stand alone
a single subtype is exactly the same as _________
supertype
what are the 2 subtype rules
–> Exhaustive: Every instance of the supertype is also an instance of the subtype. All subtypes are listed without omission
–> Mutually exclusive: Each instance of a supertype is an instance of only one subtype
what is good practice in the conceptual modelling stage
it is good practice to include the OTHER subtype to make sure that your subtypes are exhaustive – that you are handling every instance of the supertype
since subtypes always exist when should you use subtypes
when a need exists within the business to show similarities and differences between instances, then subtype
what are the 3 questions to see if the subtype is properly identified
− Is this subtype a kind of supertype?
− Have I covered all possible cases? (exhaustive)
− Does each instance fit into one and only one subtype? (mutually exclusive)
what is a structural business rule
structural business rule indicates the types of information to be stored (attributes) and how the information elements interrelate(relationships).
what are procedural business rules
- -> procedural rules deal with the prerequisties, steps, processes, or workflow requirements of the business
- -> many procedural business rules are related to time: event A must happen before event B
what is the difference between structural business rule and procedural business rule
- -> structural business rules can nearly always be diagrammed in the ERD
- -> some procedural business rules cannot be diagrammed, but must still be documented so that they can programmed later.