ERD Flashcards

1
Q

What are a database’s main components?

A

Entities
Attributes
Relationships

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

Attributes:

A

Characteristics of entities

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

Required attribute:

A

Must have a value, cannot be left empty

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

Optional attribute:

A

Does not require a value, can be left empty

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

Domain:

A

Set of possible values for a given attribute

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

Identifiers:

A

One or more attributes that uniquely identify each entity instance

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

Composite identifier:

A

Primary key composed of more than one attribute

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

Composite attribute:

A

Attribute that can be subdivided to yield additional attributes

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

Simple attribute:

A

Attribute that cannot be subdivided

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

Single-valued attribute:

A

Attribute that has only a single value

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

Multivalued attributes:

A

Attributes that have many values and require creating:

Several new attributes, one for each component of the original multivalued attribute

A new entity composed of the original multivalued attribute’s components

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

Derived attribute:

A

Attribute whose value is calculated from other attributes

- Derived using an algorithm

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

Advantages of storing derived attributes:

A
Saves CPU processing cycles
Saves data access time
Data value is readily available
Can be used to keep track of historical data
Saves storage space
Computation always yields current value
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Disadvantages of storing derived attributes:

A

Requires constant maintenance to ensure derived value is current, especially if any values used in the calculation change

Uses CPU processing cycles
Increases data access time
Adds coding complexity to queries

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

Relationships:

A

Association between entities that always operate in both directions

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

Participants:

A

Entities that participate in a relationship

17
Q

Connectivity:

A

Describes the relationship classification

18
Q

Cardinality:

A

Expresses the minimum and maximum number of entity occurrences associated with one occurrence of related entity

19
Q

Existence dependence:

A

Entity exists in the database only when it is associated with another related entity occurence

20
Q

Existence independence:

A

Entity exists apart from all of its related entities

Referred to as a strong entity or regular entity

21
Q

Weak (non-identifying) relationship:

A

Primary key of the related entity does not contain a primary key component of the parent entity

22
Q

Strong (identifying) relationships:

A

Primary key of the related entity contains a primary key component of the parent entity

23
Q

Weak Entity:

A

Conditions:

  • Existence-dependent
  • Has a primary key that is partially or totally derived from parent entity in the relationship

Database designer determines whether an entity is weak based on business rules

24
Q

Optional participation:

A

One entity occurrence does not require a corresponding entity occurrence in a particular relationship

25
Q

Mandatory participation

A

One entity occurrence requires a corresponding entity occurrence in a particular relationship

26
Q

Relationship Degree:

A

Indicates the number of entities or participants associated with a relationship

27
Q

Unary relationship:

A

Association is maintained within a single entity

28
Q

Recursive relationship:

A

Relationship exists between occurrences of the same entity set

29
Q

Binary relationship:

A

Two entities are associated

30
Q

Ternary relationship:

A

Three entities are associated

31
Q

Associative (Composite) Entities:

A
  • Used to represent an M:N relationship between two or more entities
  • Is in a 1:M relationship with the parent entities
  • Composed of the primary key attributes of each parent entity
  • May also contain additional attributes that play no role in connective process