Week 9 Flashcards

1
Q

Relationship

A

Denotes a connection between entity classes.

Should be named with a verb phrase
one phrase - grammar modified to reflect each direction
two phrases - specific for each direction.

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

relationship instance

A

denotes a connection between entity instances

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

Degree

A

The degree of a relationship is the number of entity classes that participate in the relationship.

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

Recursive

A

A relationship among entities of the same type.

Will always have a degree of 1.
Role names are helpful to determine perspective. (mentee, mentor)

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

Binary

A

Exactly two entities. Degree of 2.

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

Maximum Cardinality

A

the maximum number of entity instances that can occur on one side of a relationship
cardinality ratio: one-to-one, one-to-many or many to one, many to many
if a specific maximum is known you can use the number

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

Determining maximum cardinality

A

can entity a have more than one entityb?
can entity b have more than one entity ?

one line for one, crows foot for many

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

Determining Mimimum cardninality

A

Does entity_a have to have an entity_B? and vice versa.

If no, than min cardinality is zero. Enoted by an oval placed before the maximum cardinality.

If yes, denoted by a perpendicular line to the relationship, placed before the max cardinality for the entity that is required to participate in the relationship

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

Supertype/subtype relatinship

A

IS_A
generalization hierachies

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

Supertype

A

A type of entity class that contains attributes that are common accross all specializations

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

Subtype

A

a type of entity class that “inherits” attributes of its supertype as well as containing attributes of its own

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

Strong vs Weak entities

A

strong – can exist on its own
weak cannot (subtypes). Denoted by rounded corners or double outline

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

supertype/subtype basic notation

A

circle with arrows,
subtypes don’t have identifiers

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

when is a supertype/subtype necessary?

A

there are attributes that apply to some, but not all, instances of an entity
there is a relationship that pertains to a defined subset of instances of an entity

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

Completeness Constraint

A

The minimum number of subtype instances that a supertype instance must belong to.
Must every instance of the supertype belong to a subtype?
§ If an answer is ‘NO, an instance of the supertype doesn’t have to belong to any of the subtype(s)’, then
there is partial specialization.
§ Denoted by a single line from the supertype to the supertype/subtype relationship indicator.
§ If an answer is ‘YES, every instance of the supertype must belong to a subtype’, then there is total
specialization.
§ Denoted by double lines from the supertype to the supertype/subtype relationship indicator.

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

Disjointedness constraints

A

The maximum number of subtype instances that a supertype instance can belong to.
§ To determine the type of disjointedness constraint, you must ask a question.
§ Can an instance of the supertype belong to more than one subtype?
§ If an answer is ‘NO, an instance of the supertype may only belong to at most one subtype’, then the
disjoint rule is in effect.
§ Denoted by a ‘d’ inside the supertype/subtype relationship indicator.
§ If an answer is ‘YES, an instance of the supertype can belong to more than one subtype’, then the
overlap rule is in effect.
§ Denoted by an ‘o’ inside the supertype/subtype relationship indicator.

17
Q

Subtype Discriminator

A

A discriminator is an attribute, or a group of attributes, in a supertype that will indicate any subtypes that an entity instance belongs to.
Disjoint Rule
§ A single attribute can be used as a discriminator in the supertype.
§ The value for the discriminator will indicate which subtype, if any, an entity instance of the
supertype belongs to.
§ Overlap Rule
For each subtype an attribute will need to be used as a discriminator in the supertype.
The value of each attribute will indicate which subtypes an entity instance belongs to.

18
Q

Four options for supertype/subtypes?

A

Total specialization and disjoint rule: Every instance of the supertype must belong to one and only one subtype.

Total specialization and overlap rule: Every instance of the supertype must belong to at least one subtype, or any combination ofsubtypes.

Partial specialization and disjoint rule: An instance of the supertype does not have to belong to a subtype, but if it does, it will belong to only one subtype.

Partial specialization and overlap rule: An instance of the supertype does not have to belong to a subtype or it may belong to any combination of subtypes.

19
Q
A