ER Model Flashcards

(22 cards)

1
Q

Define entity in the ER model

A

A group of objects with the same properties. Can be both physical and conceptual

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

What is relationship

A
  • meaningful associations among two or more entities
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Define degree of relationship

A

the number of participating entity types in a relationship

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

define attribute

A

a property of an entity or relationship

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

Define candidate key

A

The minimal number of attribute(s) whose value(s) uniquely identify each entity occurrence

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

Define composite key

A

A candidate key consisting of 2 or more attributes

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

Define Primary Key

A

The candidate key that is selected to uniquely identify each occurrence of an entity type

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

what are the principle are choosing the primary key

A

― Attribute length
― Minimal number of attributes required
― The future certainty of uniqueness

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

Define the alternate key

A

any data that hasn’t been used in the primary key

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

Define weak entity type

A

An entity that is exixtence-dependant of some other entity type

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

Define multiplicity

A

the number of possible occurrences of an entity type that may relate to a single occurrence of an associated entity type through a particular relationship

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

What might the binary relationships be described as

A
  • One to one (1:1)
  • One to many (1:*)
  • Many to many (:)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Describe the one to one (1:1) relationship

A

Exactly one professor is needed to manage a discipline and a professor could manage at most one discipline

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

Describe the One to Many (1:*) relationship

A

Exactly one academic staff is needed to tutor a single student. Each academic staff may tutor many students

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

Describe the Many to Many (:) relationship

A

Students register for multiple Courses and Courses have multiple Students

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

Define Cardinality

A

the maximum values for the multiplicity ranges on either side of the relationship.
― One-to-one (1:1)
― One-to-many (1:)
― Many-to-many (
:*)

17
Q

Define participation

A

the minimum values for the multiplicity ranges on either side of the relationship
― Optional participation (if 0)
― Mandatory participation (if 1 or more)

18
Q

What is a Fan Trap?

A

A situation where two or more 1:* relationships fan out from the same entity, creating ambiguous paths

19
Q

Give an example of a Fan Trap

A

Division – Branch – Staff where we cannot tell which branch a staff works at

20
Q

What is a chasm Trap

A

A situation where optional relationships break the path between related entities

21
Q

Give an example of a chasm trap

A

Branch – Staff – PropertyForRent when optional participation prevents linking branches to some properties

22
Q

What are two possible problems in ER modelling?

A

Fan Traps and Chasm Traps