Professional Documents
Culture Documents
Lesson 4: Database Normalization
Lesson 4: Database Normalization
Normalization
References
Books:
Hoffer, Jeff. Modern Database Management, 12th Edition. Prentice
Hall, 2016. VitalBook file.
Neeraj Sharma, et.al. Database Fundamentals. 2014.
http://public.dhe.ibm.com/software/dw/db2/expressc/wiki/Database_fundamentals.pdf [accessed 02-17-2016]
Tim Wahls. Database System. Lecture Notes.
http://users.dickinson.edu/~wahlst/378/
Useful Links:
MySQL: https://www.mysql.com/
MongoDB: https://www.mongodb.org/
Outline
Database normalization
De-normalization
Set operation and SQL query
CRUD operation
About Normalization
Database normalization, or data normalization, is a technique to organize the
contents of the tables for transactional databases and data warehouses.
Normalization is part of successful database design; without normalization,
database systems can be inaccurate, slow, and inefficient, and they might not
produce the data you expect.
When you normalize a database, you have four goals: arranging data into
logical groupings such that each group describes a small part of the whole;
minimizing the amount of duplicate data stored in a database; organizing the
data such that, when you modify it, you make the change in only one place; and
building a database in which you can access and manipulate the data quickly
and efficiently without compromising the integrity of the data in storage.
Michelle A. Poolet (http://sqlmag.com/database-performance-tuning/sqldesign-why-you-need-database-normalization)
Understanding functional
dependency
Student ID
Name
Gender
Address
DOB
Other example:
ZIP Code City,
Province,
Database with so many tables. Need a way to retrieve data from multiple tables.
Question: HOW?
3
2
5
6
AB=?
AB=?
Ac = ?
A-B=?
No
01
02
03
Product
Kantong ajaib
Underwater camera
Semarang T-shirt
Prod_
No
02
01
01
User_I Review
D
4963
Recommended
gan..!
2712
Pengiriman cepat,
ok.
3221
Lebih bagus dari yg
di
Products in
Warehouse
B
No
Product
08CA
09AB
33DE
11AC
Air conditioner
08CA
63DE
Orange mango
Blank paper
Orange mango
Smart Phone 99
Golf stick model x