Lecture 1
Lecture 1
Lecture 1
Introduction
By
Farah
Shaheen
Acknowledgement:
Department of Information Technology – The UniversityLecture slides material from
of Haripur
Stuart Russell
Course Information
A
ht
Group
Accountant Skill Skill Proficienc Accountan Accountan Group
Group City Superviso
Number Number Category y Number t Name t Age Number
r
Primary Key
Accountant
Skill Number Proficiency
Primary Key Number
21 113 3
Skill
Skill Category
Number 35 113 5
77 148 6
148 Consulting
77 179 6
21 Ali 55 52
35 Daud 32 44
50 Chohan 40 44
77 Zahid 52 52
The second table is created from the Accountant table in 1st NF is as follows.
Primary Key
Group Group
Group City
Number Supervisor
52 ISD Babar
44 LHR Ghafoor
Primary Key
Accountant
Skill Number Proficiency
Primary Key Number
21 113 3
Skill
Skill Category
Number 35 113 5
77 148 6
148 Consulting
77 179 6
Satisfies 2nd NF
No transitive dependencies, so the relation is in 3 rd NF
PartID and PartName are ignored by 3 rd NF rule because they are both key attributes.
101 P01 20
112 P05 6
194 P01 12
194 P02 1
194 P05 3
Primary Key
PartID PartName
P01 CD-R
Box floppy
P02
Disks