In these exercises, you will study how to plan and build databases based on given requirements.
When designing a relational database, follow these key steps to ensure a well-structured and efficient database:
Start by identifying the main entities (tables) in your system. For each entity, determine:
Examine all relationships between tables and verify their cardinality:
Important: If you find a many-to-many relationship, you must resolve it by creating a junction table (also called bridge table or linking table). This junction table will have foreign keys pointing to both related tables, converting the many-to-many relationship into two one-to-many relationships.
Normalization is the process of organizing data in a database to reduce redundancy and improve data integrity. This includes creating tables and establishing relationships between those tables according to rules designed to protect the data and make the database more flexible.
The main goals of normalization are:
The most common normalization levels are:
For most applications, achieving Third Normal Form (3NF) is sufficient and recommended.