Database Design for Mere Mortals Ch. 10 Flashcards

1
Q

State two major reasons why a relationship is important.

A

— Establishes a connection between a pair of tables that are logically related to each other
— Helps to refine table structures and minimize redundant data
— The mechanism that enables you to draw data from multiple table simultaneously

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

Name the three types of relationships.

A
  1. One-to-one
  2. One-to-many
  3. Many-to-many
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Which relationship will pose the most problems?

A

Many-to-many

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

State two problems you could possibly encounter with a many-to-many relationship.

A

— Will be tedious and somewhat difficult for you to retrieve information from one of the tables
— One of the tables will contain a large amount of redundant data
— Duplicate data will exist within both tables
— Will be difficult to insert, update, and delete data

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

What is a self-referencing relationship?

A

A relationship that exists between the records within a given table

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

How do you begin the process of identifying the relationship among the tables in the database?

A

By creating a matrix of all the tables

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

What are the two types of questions you can ask to help you identify existing relationships?

A

Associative and contextual

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

What shorthand symbol do you use to designate a one-to-many relationship in the table matrix?

A

1:N

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

How do you determine what type of relationship officially exists between each pair of tables in the matrix?

A

Using formulas that correspond to the three relationship-type definitions

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

How do you establish a one-to-many relationship?

A

By taking a copy of the primary key from the table primary table and incorporating it within the table structure on the second table, where it becomes a foreign key

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

True or False: Retrieving information from tables with a self-referencing relationship can be tedious and somewhat difficult.

A

True

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

How do you establish a self-referencing many-to-many relationship?

A

As you would a dual-table, many-to-many relationship — with a linking table

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

How do you refine the foreign keys in the database?

A

By ensuring that each one complies with the Elements of a Foreign Key

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

What two elements categories must you modify for a foreign key’s field specification?

A

The General Elements and Logical Elements

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

What is the function of a deletion rule?

A

Determines what your RDBMS should do when you place a request to delete a given record in the parent table of the relationship

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

What two types of participation can you designate for a table?

A

Mandatory and Optional

17
Q

What does the degree of participation indicate?

A

The minimum number of records that a given table must have associated with a single record in the related table

18
Q

When does a relationship attain relationship-level integrity?

A

After you’ve verified that it is properly established and its characteristics are suitably set