Chapter 9 Data Modeling Flashcards

1
Q

What is a Binary Relationship?

A

A binary relationship is the simplest kind of relationship involving two entity types.

Example: A small Entity-Relationship (E-R) diagram could illustrate the binary relationship between salespersons and products.

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

“The Garment Utilization System (GUS) at Disney theme parks tracks costumes worn by ‘cast members’ and manages their lifecycle using barcode scanning.”

How is this an example of a database application using binary relationships?

binary relationships refer to associations between two entities in a database model.

A

The binary relationships in GUS:

  1. Cast Member to Costume: Each cast member wears one or more specific costumes, creating a relationship where each cast member is associated with the garments they are responsible for or wearing on a particular day.
  2. Costume to Garment Lifecycle Events: Each costume can go through various lifecycle stages, such as checking in, maintenance, and checking out to cast members. The relationship between costumes and their lifecycle events can also be considered a binary relationship.

The entities can be cast members & customes

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

What does cardinality refer to in E-R diagrams?

A

Cardinality refers to the maximum number of associations between two entities.

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

What is a One-to-One Relationship?

Think an paired group of salespersons

A

In a one-to-one relationship, each office has at most one salesperson, depicted in an E-R diagram with a ‘bar’ symbol showing maximum one cardinality.

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

What is a One-to-Many Relationship?

A

A one-to-many relationship occurs when a salesperson manages to many salespersons, represented in the E-R diagram by the ‘crow’s foot’ symbol.

Zero or many salespersons

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

What is a Many-to-Many Relationship?

think of a salesperson & products

A

A many-to-many (M-M) relationship occurs between many products & “the many parts of those products”, where neither can directly contain a quantity attribute.

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

What are Associative Entities?

A
  1. Associative entities, or junction tables, are used in databases to represent many-to-many relationships.
  2. They store data about the relationship between two entities and can include additional information related to that relationship.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are unique identifiers in many-to-many relationships?

A

Many-to-many relationships should have unique identifiers, typically a composite of the unique identifiers from the two entities involved.

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

What is a Unary Relationship?

A

Unary relationships associate occurrences of an entity type with other occurrences of the same entity type.

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

What is a One-to-One Unary Relationship?

A

An example is the ‘Back-Up’ relationship where salespersons are organized in pairs as backups for each other.

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

What is a One-to-Many Unary Relationship?

A

In this relationship, some salespersons may act as sales managers, overseeing multiple salespersons.

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

What is a Many-to-Many Unary Relationship?

A

Where parts can be made from several other parts and can also be “components of multiple other parts”.

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

What is a Ternary Relationship?

A

A ternary relationship involves three different entity types, such as salespersons, customers, and products.

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

What does intersection data in a ternary relationship include?

A

Intersection data consists of the date of the sale and the number of units of the product sold.

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

what are lock acquisition in transactions

A

Acquiring a lock allows a thread to have exclusive access to the data guarded by that lock, forcing other threads to block

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

What is a replicated database?

A

A replicated database involves copying data from a primary database to one or more replica databases at different locations.

17
Q

What is the purpose of replicated databases?

A

To ensure data availability even if one node fails, improving fault tolerance and load balancing.

18
Q

What are the types of replicated databases?

A
  1. Full Replication: Every record in the database is copied to all nodes, ensuring complete data consistency.
  2. Partial Replication: Only a subset of the database is copied to each node, saving resources but risking some inconsistency.
19
Q

What is a database catalog?

A

A database catalog is a schema that contains metadata about the data, such as its structure, relationships, and constraints.

20
Q

How do catalogs function in replicated databases?

A

Catalogs maintain information about the replica nodes, including their state, schema, and inconsistencies across replicas.

21
Q

What are the benefits of integrating replicated databases and catalogs?

A
  • Scalability
  • Consistency
  • Accessibility
22
Q

Define binary relationship in data modeling.

A

A binary relationship involves two entities, such as students and courses.

23
Q

What does cardinality specify in a relationship?

A

The number of instances of one entity that can or must be associated with each instance of another entity.

24
Q

What are the types of cardinality?

A
  • One-to-One (1:1)
  • One-to-Many (1:N)
  • Many-to-Many (M:N)
25
Q

What do modalities indicate in a relationship?

A

Modalities describe the minimum participation of the entities in the relationship, either mandatory or optional.

26
Q

True or False: An associative entity is used to facilitate a one-to-many relationship.

A

False

27
Q

What is an associative entity?

A

An associative entity is used to facilitate a many-to-many relationship between two entities.

28
Q

What does an associative entity typically contain?

A
  • Foreign Keys
  • Additional Attributes
  • Unique Identifier
29
Q

What is the purpose of the Garment Utilization System (GUS)?

A

GUS tracks the lifecycle of costumes worn by Disney’s workers, referred to as ‘cast members.’

30
Q

What technology does GUS operate on?

A

GUS operates on Microsoft’s SQL Server DBMS.

31
Q

What is the significance of intersection data in many-to-many relationships?

A

Intersection data defines the relationship between two entities and is often represented in E-R diagrams.

32
Q

What is a ternary relationship?

A

A ternary relationship involves three different entity types.

33
Q

What entities are involved in the ternary relationship example provided?

A
  • Salespersons
  • Customers
  • Products
34
Q

What does intersection data in a ternary relationship include?

A
  • The date of the sale
  • The number of units sold
35
Q

When you create a table what does it contain?

A
  1. When you initially create a table using the CREATE TABLE statement, it is empty.
  2. It only defines the structure (columns and their data types) but doesn’t contain any actual data rows.
  3. You’ll need to use the INSERT INTO statement to populate the table with data.