Ch 4-5 Flashcards

(36 cards)

1
Q

E-R Model Components

A

Entities, Attributes, and Relationships

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

Entities

A

Refers to the entity set, not an entity occurrence

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

Entity instance

A

A row in a table corresponds to it

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

Rectangle

A

An entity is represented by it containing the entity’s name

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

Attributes

A

Represented by ovals and are connected to the entity with a line
Have a domain-the attribute’s set of possible values
May share a domain
Primary keys are underlined

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

Simple attribute

A

Cannot be subdivided
Ex: Age, Sex, and Martial status

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

Composite Attribute

A

Can be further subdivided to yield additional attributes

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

Single-valued attribute

A

Can have only a single value

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

Multivalued attribute

A

Can have many values

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

Multivalued Attribute in Relational DBMS

A

Relational DBMS cannot implement multivalued attributes

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

Derived attribute

A

Not physically stored within the databases; its value is computed from other attributes
Indicated using a dotted line connecting the attribute with the entity

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

Relationship

A

An association between entities
Describes as verbs
Represented by diamond-shaped symbols

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

Unary Relationship

A

Exists when an association is maintained within a single entity (Recursive relationship)

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

Binary Relationship

A

Exists when two entities are associated (Most common)

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

Ternary relationship

A

Three entities participate

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

Connectivity

A

Describe the relationship classification

17
Q

Cardinality

A

Expresses the specific number of entity occurrences associated with one occurrence of the related entity
Determined by an organization’s business policy

18
Q

Existence-Dependent

A

If an entity’s existence depends on the existence of one or more other entities

19
Q

Dependence

A

Table can’t exist on its own
Always depend on another entity
Weak Entity

20
Q

Independence

A

Table can exist on its own
Strong Entity

21
Q

Participation

A

Is optional if one entity occurrence does not require a corresponding entity occurrence in a particular relationship

22
Q

Optional entity

A

Shown by small circle on the side of the optional entity

23
Q

Weak Entity

A

Existence-dependent on another entity
Has a primary key that is partially or totally derived from its strong counterpart
Indicated by a double rectangle

24
Q

Strong (Identifying) Relationship

A

Exists when the PK of the related entity contains a PK component of the parent entity
Crow’s Foot model uses a solid line to connect the two entities

25
Weak (Non-Identifying) Relationship
Exists when the PK of the related entity does not contain a PK component of the parent entity Crow's Foot model uses a dashed line to connect the two entities
26
Recursive Entity
One in which a relationship can exist between occurrence of the same entity set Found within a unary relationship
27
Composite Entity
Often created in the process of replacing a M:N relationship by a pair of 1:M relationships Serves as a bridge between the relate entities Composed of the primary keys May contain additional attributes
28
Supertype-Subtype (ISA relationship, Generalization-Specialization hierarchy)
Added to the ER model to create the Enhanced ER model
29
Grouping Entities into types
To avoid NULLs Allows unique attributes
30
Subtype Discriminator
Attributes (data field) that determines the subtype (can be boolean or Integer (ID) or String Value (Type/Code)
31
A subtype entity inherits
the attributes and relationships of the supertype entity and has attributes and relationships unique to itself
32
A subtype entity is created when
Has some unique attributes that do not apply to the supertype entity Participates in relationships that do not apply to the supertype entity
33
Supertype-subtype relationship is modeled as
1:1 relationship in the EER model
34
Completeness constraint
Specifies whether each entity supertype instance is required to be a member of at least one of the subtype
35
Total Completeness
That every supertype occurrence must be a member of at least one subtype
36
Partial Completeness
Some of the supertype instances may not be members of any subtype