
























Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

























NF)
NF)
NF)
Activity: Creating Employee Table 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');
Activity: Insertion Anomaly insert into Employee values (null, null, null, 'P3', 'Good project'); Error: Cannot insert the value NULL into column 'eKey'
Activity: Update Anomaly update Employee set pDescription = 'Database Project' where pName = 'P1'; Result 2 row(s) affected.
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 Functional dependencies examples 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