Purple & White Business Profile Presentation
Purple & White Business Profile Presentation
SYSTEMS
2NF: 4NF:
Remove partial Address multi-valued
dependencies.
dependencies.
3NF: 5NF:
Remove transitive Address join
dependencies. dependencies.
FIRST NORMAL FORM (1NF) Product_Table
3 Blue 69$
Product_Table
ABOUT
Product_ID Color Price
3 Blue 69$
SECOND NORMAL FORM (2NF) Table_Purchare_Details
2 1
THIRD NORMAL FORM (3NF) Step : Identify the Transitive
Dependency
• Dept_Manager depends on
Dept_ID.
• Dept_ID depends on the
• primary key Emp_ID.
BOYCE-CODD NORMAL FORM (BCNF)
Key Concepts:
• Functional Dependency (FD): A relationship where one attribute or a
set of attributes uniquely determines another attribute.
• Superkey: A set of attributes that uniquely identifies a record in a table.
• Candidate Key: A minimal superkey, meaning no attribute can be
removed without losing the uniqueness.
Functional Dependencies:
• Student_ID, Course_ID → Instructor (The combination of
Student_ID and Course_ID determines the Instructor).
• Course_ID → Instructor (A course is taught by only one
instructor).
Step 1: Ensure the Table is in 3NF
Step 2: Identify Functional
Dependencies
Step 3: Identify Candidate Keys and
Superkeys
Step 4: Check Functional
Dependencies for Superkeys
Advantages of Normalization
Normalization has many advantages, including:
• Improved database organization: Normalization organizes a database's tables and columns, and ensures the
database's integrity.
• Reduced redundancy: Normalization can eliminate duplicate data and reduce null values.
• Improved data analysis: Normalization can help avoid data quality issues and improve data analysis.
• Easier to use and accurate data: Normalization can make data easier to use and accurate.
• Consistent tables: Normalization can make tables consistent, making them easier to access and understand.
• Faster finding, sorting, and indexing: Because tables are more compact, finding, sorting, and indexing can be quicker.
• Helps models converge more quickly: In machine learning, normalization can help models converge more quickly
during training.
• Helps models infer better predictions: In machine learning, normalization can help models infer better predictions.
DisAdvantages of Normalization
Data normalization has several disadvantages, including:
• Query performance: Normalization can make querying data more complex and slower, especially in large databases. This is
because normalization requires complex joins between tables to retrieve data.
• Storage space: Eliminating redundancy can increase storage requirements because data is spread across multiple tables.
• Indexing: Indexing doesn't work as efficiently because joins are required. This also makes read times slower.
• Limited feature variability: Normalization may not provide major benefits if the dataset features are already similar in scale or
have limited variability. Normalizing such datasets can lead to data distortion and negatively impact model performance.
• Tables contain codes: Rewritten data is saved as lines of numbers instead of actual data, so tables contain codes rather than
actual information.
When to Use Denormalization:
E-commerce Databases:
• Normalization helps store customer, product, and order data separately, avoiding redundancy and
ensuring data integrity.
• Denormalization speeds up product searches and order queries. Products might be stored with
prices and stock information in one table for fast access.
Banking Systems:
• Normalization ensures efficient storage and management of accounts, transactions, customer
Your paragraph text
data, and branch details without redundancy.
• Denormalization is used for reporting purposes, where balances and recent transactions may be
stored together for faster reporting.
THANK YOU