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

Study methods

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

Database Normalization Basics

  • 27Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Normalization Basics
  • spaceFlip card
  • KI knew it
  • DI didn't know it
  • ←Previous card
  • →Next card

What is database normalization?

Tap to flipClick to flipspace

The process of structuring a database table to prevent redundant information, ensuring that the table can only express one version of the truth.

Or swipe the card

27 cards

  1. What is database normalization?

    The process of structuring a database table to prevent redundant information, ensuring that the table can only express one version of the truth.

  2. What are the benefits of normalization?

    Protection from contradictory data, easier understanding, easier enhancement/extension, and protection from insertion, update, and deletion anomalies.

  3. How are normal forms analogous to safety assessments?

    Like bridge safety levels (pedestrian, car, truck), each normal form provides a stricter guarantee against data redundancy and anomalies.

  4. What is the first rule of First Normal Form (1NF)?

    Using row order to convey information is not permitted.

  5. What is the second rule of First Normal Form (1NF)?

    Mixing data types within the same column is not permitted.

  6. What is the third rule of First Normal Form (1NF)?

    Every table must have a primary key that uniquely identifies each row.

  7. What is a primary key?

    A column (or combination of columns) that uniquely identifies each row in a table.

  8. What is the fourth rule of First Normal Form (1NF)?

    Repeating groups are not permitted.

  9. How do you fix a repeating group violation of 1NF?

    Split the data into multiple rows, one per value, with a composite primary key that includes the entity identifier and the item type.

  10. What is the requirement for Second Normal Form (2NF)?

    Each non-key attribute must be dependent on the entire primary key (no partial dependencies).

  11. What is a functional dependency?

    A relationship where a given value of one attribute (or set of attributes) determines exactly one value of another attribute.

  12. What problems can occur if a table fails 2NF?

    Insertion, update, and deletion anomalies that can lead to data inconsistencies or data loss.

  13. What is a deletion anomaly?

    When deleting a row causes the loss of unrelated data that was stored only in that row.

  14. What is an update anomaly?

    When updating data in one row leaves other rows with inconsistent, contradictory data.

  15. What is an insertion anomaly?

    When it is impossible to insert a row because required data is missing, even though the data is logically independent.

  16. How do you fix a 2NF violation?

    Split the table into two or more tables so that each non-key attribute depends on the whole key. Move partially dependent attributes to a separate table.

  17. What is the requirement for Third Normal Form (3NF)?

    No transitive dependencies: every non-key attribute must depend directly on the primary key, not on another non-key attribute.

  18. What is a transitive dependency?

    A dependency where a non-key attribute depends on another non-key attribute, which in turn depends on the primary key.

  19. How do you fix a 3NF violation?

    Remove the transitively dependent attribute(s) to a new table. Keep the direct dependency in the original table.

  20. What is Boyce-Codd Normal Form (BCNF)?

    A slightly stronger version of 3NF where every attribute (not just non-key) must depend on the key, the whole key, and nothing but the key.

  21. What is the requirement for Fourth Normal Form (4NF)?

    The only allowed multivalued dependencies are those on the key. No non-key multivalued dependencies are permitted.

  22. What is a multivalued dependency?

    A dependency where two or more independent attributes are associated with a key, but independently. Denoted with a double-headed arrow (↠\twoheadrightarrow↠).

  23. How do you fix a 4NF violation?

    Split the table into two or more tables, each representing one of the independent multivalued dependencies.

  24. What is the requirement for Fifth Normal Form (5NF)?

    A table must not be decomposable into smaller tables without loss of information (no join dependency not implied by candidate keys).

  25. What is a join dependency?

    When a table can be decomposed into multiple tables that can be joined back to reconstruct the original table without any changes.

  26. How do you fix a 5NF violation?

    Decompose the table into the component tables that represent the individual relationships.

  27. Summarize the rules for all normal forms from 1NF to 5NF.

    1NF: no row order, no mixed data types, must have primary key, no repeating groups. 2NF: no partial key dependencies. 3NF: no transitive dependencies. BCNF: every attribute depends on key, whole key, nothing but the key. 4NF: no multivalued dependencies except on key. 5NF: no join dependencies that are not implied by candidate keys.

Card 1 of 27
Card 1 of 27

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent