1. Home
  2. Explore
  3. Computer Science
  4. Database Design and Normalization

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Database Design and Normalization

  • 79Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Database Implementation
In database design, a conceptual relation can be represented in entity-relationship modeling as an
.

79 questions

  1. 1
    In 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

  2. 2
    Before 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

  3. 3
    A 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

  4. 4
    Every database table should have a specified
    _____
    that identifies its rows.
    Hint

    This key uniquely identifies each row in a table.

    Answer

    primary key

  5. 5
    A column's null status specifies whether
    _____
    values are allowed.
    Hint

    This status concerns the representation of missing or absent values.

    Answer

    null

  6. 6
    If 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

  7. 7
    Column 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

  8. 8
    A 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

  9. 9
    A 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

  10. 10
    After 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

  11. 11
    An 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

  12. 12
    An 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

  13. 13
    A 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

  14. 14
    In 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

  15. 15
    Adding 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

  16. 16
    If 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

  17. 17
    Changing 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

  18. 18
    A 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

  19. 19
    A 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

  20. 20
    An 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

  21. 21
    A
    _____
    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

  22. 22
    A 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

  23. 23
    A 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

  24. 24
    A 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

  25. 25
    A 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

  26. 26
    Removing 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

  27. 27
    A 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

  28. 28
    Boyce-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

  29. 29
    A 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

  30. 30
    In 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

  31. 31
    In 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

  32. 32
    The 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

  33. 33
    In 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

  34. 34
    In 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

  35. 35
    In 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

  36. 36
    Combining two or more tables into one because of a business justification is called
    _____
    .
    Hint

    This process reverses the direction of normalization.

    Answer

    denormalization

  37. 37
    Two common reasons to denormalize tables are simplicity of design and
    _____
    of querying.
    Hint

    This benefit concerns how quickly queries run.

    Answer

    speed

  38. 38
    A 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

  39. 39
    Keeping 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

  40. 40
    In 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

  41. 41
    Storing 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

  42. 42
    Entering 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

  43. 43
    A 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

  44. 44
    Database 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

  45. 45
    For 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

  46. 46
    When 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

  47. 47
    In 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

  48. 48
    If 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

  49. 49
    In 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

  50. 50
    In 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

  51. 51
    In 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

  52. 52
    In 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

  53. 53
    In a one-to-many relationship, the many side is called the
    _____
    table.
    Hint

    Its corresponding one-side table is called the parent.

    Answer

    child

  54. 54
    In 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

  55. 55
    A 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

  56. 56
    A 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

  57. 57
    The 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

  58. 58
    An 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

  59. 59
    In 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

  60. 60
    In 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

  61. 61
    To 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

  62. 62
    In 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

  63. 63
    In 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

  64. 64
    An 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

  65. 65
    A 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

  66. 66
    An 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

  67. 67
    With 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

  68. 68
    A 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

  69. 69
    One-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

  70. 70
    A many-to-many recursive relationship requires an
    _____
    table.
    Hint

    This lookup structure links rows from the same table to one another.

    Answer

    intersection

  71. 71
    In 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

  72. 72
    In 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

  73. 73
    In 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

  74. 74
    To 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

  75. 75
    When 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

  76. 76
    In 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

  77. 77
    To 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

  78. 78
    A 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

  79. 79
    In 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

1 of 79
Question 1 of 79

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent