


























Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
An introduction to normalization and database design, focusing on the identification and resolution of anomalies through the application of functional dependencies and the achievement of First, Second, and Third Normal Forms. insertion, update, and deletion anomalies, as well as the concepts of functional dependencies and normal forms.
Typology: Lecture notes
1 / 34
This page cannot be seen from the preview
Don't miss anything!



























create database NormalizationTest; go use NormalizationTest; go create table Employee( eKey int primary key, eLastName varchar( 50 ), eFirstName varchar( 50 ), pName varchar( 50 ), pDescription varchar( 50 ) ); go insert into Employee values ( 1 , 'Smith', 'John', 'P1', 'DB Prj'), ( 2 , 'Doe', 'John', 'P2', 'Java Prj'), ( 3 , 'Smith', 'Carol', 'P1', 'DB Prj');
insert into Employee values (null, null, null, 'P3', 'Good project'); Error: Cannot insert the value NULL into column 'eKey'
update Employee set pDescription = 'Database Project' where pName = 'P1'; Result 2 row(s) affected.
E.g., If we delete employee Sanderson Lisa (e.g., she quit), then we will lose information about Project DB
sId sName sDoB 1 John Smith 1999 - 01 - 12 2 Remesh Shah 1998 - 02 - 28 3 Susan Black 1999 - 08 - 10 4 John Smith 1999 - 01 - 12 5 John Doe 1998 - 02 - 28 Student Functional dependency sId - > {sName, sDob} sName - > sDoB Functional Dependency Diagram sId sName sDoB sName sDoB Note: Keys (super key, primary key, candidate key) determine all the attributes in a relation ERD RDM(relational data model)
A B C