Conceptual to Logical Modelling Flashcards
what are the goals (3)
preserve all information
maintain constraints as much as possible
minimise null values
what constraints cant we represent
1:10 cardinality
exhaustive subtypes
what are the nine steps
- strong entities
- weak entities
- 1:1
- 1:N
- M:N
- multivalued
- Nary
- disjoint/overlap
- union
how do we map weak entites
create a relation
PK= partial key and owner key
how do we map 1:1 relationships (3 methods)
FK approach- include as FK
merged relation approach- merge the two entities into a single relation
relationship relation approach - create a new relation
how do we map 1:N relationships
include as FK in the N side, the PK of the 1 side
how do we map M:N relationships
create relation for relationship
PK is the composite of the two keys
what are the 4 methods to map specialisation and generalisation
what types are they suited for
multiple relations- sub and super (all 4)
create a relation for all entities using the key from super
multiple relations- subs only (total and disjoint)
create relations for subclasses using PK from super and include all supers attributes
single relation- one type attribute (disjoint)
create relation for super and include attributes for each type of sub
single relation- many type attribute (overlap and disjoint)
create relation for super containing its own and sub attributes
how do we map union types
include supers PK and FK