Database Design and Normalization
- 79Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
79 questions
- 1In database design, a conceptual relation can be represented in entity-relationship modeling as an_____.
Hint
Think of the modeling construct that represents a business concept.
Answer
entity
- 2Before an entity can be implemented as a database table, each attribute needs a specified_____.
Hint
This specifies whether a value is an integer, a date-time, or another kind of value.
Answer
data type
- 3A standard first step in implementing a data model is to create a table for each_____in the model.
Hint
Each modeled business concept is represented by one of these.
Answer
entity
- 4Every database table should have a specified_____that identifies its rows.
Hint
This key uniquely identifies each row in a table.
Answer
primary key
- 5A column's null status specifies whether_____values are allowed.
Hint
This status concerns the representation of missing or absent values.
Answer
null
- 6If a value is not supplied for a column and the database fills one in automatically, that value is a_____value.
Hint
It is the value used automatically when no specific value is provided.
Answer
default
- 7Column constraints can be used to preserve the_____of the data stored in a table.
Hint
This refers to the accuracy and consistency of stored data.
Answer
integrity
- 8A constraint that requires column values to fall between a minimum and maximum is a_____constraint.
Hint
It limits values to an interval of acceptable values.
Answer
range
- 9A column can be constrained so that each value must belong to a predefined_____of acceptable values.
Hint
Think of a collection of permitted options.
Answer
set
- 10After designing a table's columns and properties, designers should reassess its structure in light of the database's_____needs.
Hint
This process concerns organizing tables to avoid modification anomalies.
Answer
normalization
- 11An insertion anomaly occurs when a problem arises while trying to_____data into a table.
Hint
This anomaly is associated with adding information.
Answer
add new
- 12An update anomaly occurs when changing data in a table creates a problem with data_____.
Hint
Consider whether the updated information remains correct and consistent.
Answer
accuracy
- 13A deletion anomaly occurs when deleting existing data also removes other information that should have been_____.
Hint
The unintended loss concerns information that should remain available.
Answer
preserved
- 14In the customer-and-car example, deleting Leonard's row also erased the only record that a 2010 Nissan Sentra existed; this illustrates a_____anomaly.
Hint
The problem was caused by removing a customer's row.
Answer
deletion
- 15Adding Sheldon, who did not drive, to a customer-and-car table created missing values and wasted space, illustrating an_____anomaly.
Hint
The problem arose while adding a customer who had no car information.
Answer
insertion
- 16If Sheldon is added as an owner of an already-listed Volkswagen Golf but its name is misspelled, the repeated car information illustrates an_____anomaly.
Hint
The issue occurs as information is added to a table that repeats facts.
Answer
insertion
- 17Changing a car ID for Penny but not for Sheldon, who owns the same type of car, creates an_____anomaly.
Hint
The problem results from changing one occurrence of repeated information but not another.
Answer
update
- 18A normalization strategy for avoiding modification anomalies is to break a large table into_____tables.
Hint
The goal is to separate information about distinct business concepts.
Answer
smaller
- 19A functional dependency exists when the value of one attribute can be used to determine the value of another attribute or_____of attributes.
Hint
The determining attribute may identify more than one other attribute.
Answer
set
- 20An attribute whose value determines the values of other attributes in a table is called a_____.
Hint
This is the attribute on the determining side of a functional dependency.
Answer
determinant
- 21A_____key is an attribute whose values determine every other non-key attribute in a row.
Hint
A primary key is selected from this category of possible keys.
Answer
candidate
- 22A candidate key consisting of the value of just one attribute is a_____candidate key.
Hint
It uses a single attribute rather than combining attributes.
Answer
simple
- 23A candidate key whose uniqueness depends on combining two or more attributes is a_____candidate key.
Hint
Its identifying power comes from a combination of attributes.
Answer
composite
- 24A table that meets the definition of a relation is, by definition, in_____.
Hint
This is the first normal form in the normalization sequence.
Answer
First Normal Form
- 25A table in First Normal Form reaches_____when its partial dependencies are removed.
Hint
This normal form follows First Normal Form and addresses partial dependencies.
Answer
Second Normal Form
- 26Removing transitive dependencies from a table in Second Normal Form brings it to_____.
Hint
This normal form follows the removal of partial dependencies and then transitive dependencies.
Answer
Third Normal Form
- 27A table is in Boyce-Codd Normal Form when every_____in it is also a candidate key.
Hint
This is the attribute that determines other attributes.
Answer
determinant
- 28Boyce-Codd Normal Form is sometimes called_____because it is a slightly more stringent version of Third Normal Form.
Hint
The nickname places it between the third and fourth numbered forms.
Answer
3.5 Normal Form
- 29A database design in Third Normal Form or above is generally not susceptible to the modification_____described in the lecture.
Hint
These include insertion, update, and deletion problems.
Answer
anomalies
- 30In the customer example, knowing a customer's zip code determines the corresponding city and_____.
Hint
The postal code identifies both a city and a regional subdivision.
Answer
state
- 31In the original customer table, the accountant ID determines the accountant's name and_____.
Hint
This is the other accountant detail stored with the name.
Answer
telephone number
- 32The normalized customer design separates customer, zip code, and_____information into three tables.
Hint
This is the third business concept, alongside the customer and postal-code data.
Answer
accountant
- 33In the normalized design, the customer ID is the primary key of the_____table.
Hint
This table stores the customer's name and address.
Answer
customer
- 34In the normalized design, the zip code is the primary key of the_____table.
Hint
This table stores the city and state determined by a postal code.
Answer
zip code
- 35In the normalized design, accountant ID is the primary key of the accountant table, which stores the accountant's name and_____.
Hint
This is the other non-key attribute besides the accountant name.
Answer
accountant phone
- 36Combining two or more tables into one because of a business justification is called_____.
Hint
This process reverses the direction of normalization.
Answer
denormalization
- 37Two common reasons to denormalize tables are simplicity of design and_____of querying.
Hint
This benefit concerns how quickly queries run.
Answer
speed
- 38A denormalized design trades possible query-performance benefits for an increased risk of modification_____.
Hint
These problems can occur during insertion, updates, or deletion.
Answer
anomalies
- 39Keeping customer, zip code, city, and state together can speed address retrieval by avoiding a_____operation.
Hint
This operation combines related rows from separate tables.
Answer
join
- 40In relational databases, joining tables can slow query performance because it uses substantial computational cycles and_____.
Hint
This is the other resource consumed by a computationally expensive operation.
Answer
time
- 41Storing the same city and state for many customers creates_____data in a denormalized customer table.
Hint
The same information appears redundantly in many rows.
Answer
repetitive
- 42Entering the same state sometimes as a full name, sometimes as an abbreviation, and sometimes with different capitalization illustrates inconsistent_____values.
Hint
These are the stored values that vary between customer rows.
Answer
data
- 43A defensible business reason should exist before a database designer chooses to_____a design.
Hint
This is the process that can improve simplicity or query speed but introduces risks.
Answer
denormalize
- 44Database constraints and software validity checks can help prevent problems caused by denormalization, but they add_____.
Hint
These extra tasks require additional effort to implement and maintain.
Answer
overhead
- 45For a one-to-one binary relationship in which both sides are optional, the foreign key can go in_____table.
Hint
The designer may choose between the two related tables.
Answer
either
- 46When only one side of a one-to-one binary relationship is optional, the foreign key usually belongs in the table on the_____side.
Hint
This is the side whose minimum cardinality is zero.
Answer
optional
- 47In the employee-and-locker example, both sides are optional, so the foreign key may be placed in either the employee table or the_____table.
Hint
This is the other table in the example's one-to-one relationship.
Answer
locker
- 48If it makes more conceptual sense to think of an employee as having a locker, the foreign key can be placed in the_____table.
Hint
This table represents the person assigned a locker.
Answer
employee
- 49In the patient-and-bed example, every patient has exactly one bed, but some beds are empty; therefore, the foreign key belongs in the_____table.
Hint
This is the optional side's related table that stores the bed ID.
Answer
Patient
- 50In a one-to-one relationship, a SQL join matches values of the primary key to corresponding_____values.
Hint
This key links a row to the related table.
Answer
foreign key
- 51In a one-to-many relationship, the foreign key belongs at the_____side.
Hint
This side contains multiple related rows for one row on the other side.
Answer
many
- 52In a one-to-many relationship, the one side is called the_____table.
Hint
The table on the many side is called its child.
Answer
parent
- 53In a one-to-many relationship, the many side is called the_____table.
Hint
Its corresponding one-side table is called the parent.
Answer
child
- 54In the team-and-player example, Team ID is copied into the player table as a_____.
Hint
It links each player to the team table's primary key.
Answer
foreign key
- 55A many-to-many relationship between two tables is implemented by adding an_____between them.
Hint
It acts as a lookup table linking the two parent tables.
Answer
intersection table
- 56A common primary key strategy for an intersection table is to combine the primary keys of its two_____tables.
Hint
These are the two tables connected through the intersection table.
Answer
parent
- 57The combined primary key made from two or more attributes in an intersection table is a_____primary key.
Hint
Its uniqueness comes from a combination of key values.
Answer
composite
- 58An intersection table can use a_____key as its primary key instead of a composite key.
Hint
This is an alternative identifier that is not made from the parent keys.
Answer
surrogate
- 59In a student-and-class many-to-many example, the table that links students to classes is an_____table.
Hint
It sits between the two parent tables to record their pairings.
Answer
intersection
- 60In a composite-key intersection table, each component of the composite primary key also serves as a_____to its parent table.
Hint
Each component links back to one of the related parent tables.
Answer
foreign key
- 61To list students and the classes each has taken, a query joins the student and class tables using the_____table.
Hint
This linking table connects student IDs with class numbers.
Answer
student-class
- 62In the student-and-class query, student IDs are matched between the student table and the_____table.
Hint
This table contains both student and class identifiers.
Answer
student-class
- 63In the same query, the class number in the intersection table is matched to the class number in the_____table.
Hint
This table contains the class records.
Answer
class
- 64An intersection table that includes additional non-key attributes is also called an_____entity.
Hint
This term describes an entity that connects two related tables and stores relationship details.
Answer
associative
- 65A Grade attribute in a student-class intersection table records information about the student's performance in the_____.
Hint
It is the course in which the student receives a grade.
Answer
class
- 66An associative entity with a composite primary key allows each matched pair of parent values to appear a maximum of_____time.
Hint
The primary key prevents an identical pair from being repeated.
Answer
one
- 67With a surrogate key in a rating table, a customer can potentially rate the same product_____times.
Hint
The customer and product IDs are foreign keys, not parts of the primary key.
Answer
many
- 68A relationship in which a table is connected to or related to itself is a_____relationship.
Hint
The relationship loops back to the same table.
Answer
recursive
- 69One-to-one and one-to-many recursive relationships can be implemented by placing a_____link within the table.
Hint
This key points from one row back to a related row in the same table.
Answer
foreign key
- 70A many-to-many recursive relationship requires an_____table.
Hint
This lookup structure links rows from the same table to one another.
Answer
intersection
- 71In the sponsorship example, each person may be sponsored by zero or one other person, making the relationship_____.
Hint
Each person has at most one sponsor, and the example is classified by this cardinality.
Answer
one-to-one
- 72In the referral example, one customer may refer many customers, while each customer has at most one referrer; this is a_____recursive relationship.
Hint
One customer can connect to multiple referred customers.
Answer
one-to-many
- 73In the doctor-care example, each doctor may treat many doctors and may be treated by many doctors, forming a_____recursive relationship.
Hint
Multiple rows on each side can be related to multiple other rows in the same table.
Answer
many-to-many
- 74To query a one-to-one recursive relationship in SQL, the same table is joined to_____.
Hint
The table represents both roles in the relationship.
Answer
itself
- 75When the same table appears twice in a recursive SQL query, each instance is given a different_____.
Hint
This alternate name distinguishes one instance of a table from the other.
Answer
alias
- 76In the customer referral example, the referred-by field is a_____link that supports the recursive relationship.
Hint
It refers to another customer in the same table.
Answer
foreign key
- 77To find customers referred by customer 100, a recursive SQL query refers to the customer table twice and joins the instances using different_____.
Hint
These are alternate identifiers for the two instances of the table.
Answer
names
- 78A many-to-many recursive SQL query selects data from the doctor table twice and also from its_____table.
Hint
This additional table records the links between doctors.
Answer
intersection
- 79In a recursive many-to-many query, the two instances of the doctor table are assigned unique names before being joined with the_____table.
Hint
It provides the lookup links between the two doctor roles.
Answer
intersection

Ask anything
We've read this whole study set, so questions about it get the best answers.