Conceptual to Logical Modelling Flashcards

1
Q

what are the goals (3)

A

preserve all information

maintain constraints as much as possible

minimise null values

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

what constraints cant we represent

A

1:10 cardinality

exhaustive subtypes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

what are the nine steps

A
  1. strong entities
  2. weak entities
  3. 1:1
  4. 1:N
  5. M:N
  6. multivalued
  7. Nary
  8. disjoint/overlap
  9. union
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

how do we map weak entites

A

create a relation

PK= partial key and owner key

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

how do we map 1:1 relationships (3 methods)

A

FK approach- include as FK

merged relation approach- merge the two entities into a single relation

relationship relation approach - create a new relation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

how do we map 1:N relationships

A

include as FK in the N side, the PK of the 1 side

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

how do we map M:N relationships

A

create relation for relationship

PK is the composite of the two keys

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

what are the 4 methods to map specialisation and generalisation

what types are they suited for

A

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 well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

how do we map union types

A

include supers PK and FK

How well did you know this?
1
Not at all
2
3
4
5
Perfectly