Database Design for Mere Mortals Ch. 10 Flashcards
State two major reasons why a relationship is important.
— 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
Name the three types of relationships.
- One-to-one
- One-to-many
- Many-to-many
Which relationship will pose the most problems?
Many-to-many
State two problems you could possibly encounter with a many-to-many relationship.
— 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
What is a self-referencing relationship?
A relationship that exists between the records within a given table
How do you begin the process of identifying the relationship among the tables in the database?
By creating a matrix of all the tables
What are the two types of questions you can ask to help you identify existing relationships?
Associative and contextual
What shorthand symbol do you use to designate a one-to-many relationship in the table matrix?
1:N
How do you determine what type of relationship officially exists between each pair of tables in the matrix?
Using formulas that correspond to the three relationship-type definitions
How do you establish a one-to-many relationship?
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
True or False: Retrieving information from tables with a self-referencing relationship can be tedious and somewhat difficult.
True
How do you establish a self-referencing many-to-many relationship?
As you would a dual-table, many-to-many relationship — with a linking table
How do you refine the foreign keys in the database?
By ensuring that each one complies with the Elements of a Foreign Key
What two elements categories must you modify for a foreign key’s field specification?
The General Elements and Logical Elements
What is the function of a deletion rule?
Determines what your RDBMS should do when you place a request to delete a given record in the parent table of the relationship