1. Home
  2. Explore
  3. Computer Science
  4. Database Normalization Overview

Study methods

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

Database Normalization Overview

  • 20Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Normalization Basics
The process of
involves arranging tables, columns, and relationships to avoid data redundancy and attain data integrity.

20 questions

  1. 1
    The process of
    _____
    involves arranging tables, columns, and relationships to avoid data redundancy and attain data integrity.
    Hint

    This process is about organizing data to reduce duplication and ensure correctness.

    Answer

    database normalization

  2. 2
    The main purpose of database normalization is to avoid
    _____
    anomalies (Create, Update, Delete).
    Hint

    These are the three types of operations that can cause issues in a denormalized database.

    Answer

    CUD

  3. 3
    In the denormalized FilmAgents table, the primary key is
    _____
    .
    Hint

    It is the column that uniquely identifies each agent row.

    Answer

    AgentId

  4. 4
    The inability to insert a new agency into the FilmAgents table because it has no agent (and hence no primary key value) is an example of a(n)
    _____
    anomaly.
    Hint

    This anomaly is related to the Create operation in CUD.

    Answer

    insert

  5. 5
    If an agency's office location is stored in multiple rows and must be changed in all those rows to avoid inconsistency, this is an example of a(n)
    _____
    anomaly.
    Hint

    This anomaly arises due to data redundancy when modifying repeated data.

    Answer

    update

  6. 6
    Deleting an agent from the FilmAgents table also removes the agency and client information because the agent was the only entry for that agency; this is a(n)
    _____
    anomaly.
    Hint

    This anomaly involves losing unintended data when removing a row.

    Answer

    delete

  7. 7
    A read anomaly is illustrated by the need to query multiple customer columns (e.g., customer1, customer2, customer3) with OR conditions to find which agency represents a particular customer, which is
    _____
    .
    Hint

    Think about the ease of writing queries when data is not normalized.

    Answer

    clumsy

  8. 8
    One of the rules of 1NF is that each column must contain a(n)
    _____
    value (single value).
    Hint

    This means no lists or sets in a single cell.

    Answer

    atomic

  9. 9
    Another rule of 1NF is that there must be a
    _____
    that uniquely identifies each row.
    Hint

    This can be a single column or a combination of columns.

    Answer

    primary key

  10. 10
    The denormalized FilmAgents table violates 1NF because it has a group of columns representing similar information: customer1, customer2, and
    _____
    .
    Hint

    There are three such columns in the example.

    Answer

    customer3

  11. 11
    To achieve 1NF from the denormalized table, the data was split into two tables: AgentInfo and
    _____
    .
    Hint

    This new table holds the customer details that were previously in repeating columns.

    Answer

    CustomerInfo

  12. 12
    After achieving 1NF, one benefit is that an agent can represent an
    _____
    number of customers.
    Hint

    Unlike before, where only three customers were allowed per agent.

    Answer

    unlimited

  13. 13
    After 1NF, the ability to sort data by customer name is possible because customer name is a single
    _____
    rather than three separate columns.
    Hint

    In the denormalized table, you had three columns for customer names, making sorting ambiguous.

    Answer

    column

  14. 14
    For a table to be in 2NF, it must first be in 1NF, and all non-key columns must be
    _____
    on the primary key.
    Hint

    Think about what the primary key identifies; non-key columns should describe that entity.

    Answer

    dependent

  15. 15
    In the AgentInfo table (after 1NF), the column OfficeLocation does NOT depend on the primary key AgentId because it describes the
    _____
    rather than the agent.
    Hint

    Consider what entity the column truly describes.

    Answer

    agency

  16. 16
    To achieve 2NF, the data was further split: a new table AgencyInfo was created, and the relationship between agents and agencies was established using a
    _____
    key.
    Hint

    This key references the primary key of another table.

    Answer

    foreign

  17. 17
    In the 2NF design, a
    _____
    table (or intersection table) was created to represent the many-to-many relationship between agents and customers.
    Hint

    This table typically contains only foreign keys.

    Answer

    join

  18. 18
    3NF requires that all non-key columns be
    _____
    dependent on the primary key (i.e., no transitive dependencies).
    Hint

    Think about indirect dependencies; 3NF eliminates those.

    Answer

    non-transitively

  19. 19
    In the CustomerInfo table (after 2NF), the column CustPinCode is transitively dependent on the primary key CId through the column
    _____
    .
    Hint

    Pin code depends on city, and city depends on customer ID.

    Answer

    CustCity

  20. 20
    To achieve 3NF, a new table CustomerPinCodes was created with CustPinCode as the primary key and CustCity as a non-key column, thereby removing the
    _____
    dependency.
    Hint

    This was the type of dependency violated in 3NF.

    Answer

    transitive

1 of 20
Question 1 of 20

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent