Normalization-Introduction to Database System-Lecture Slides, Slides of Introduction to Database Management Systems

This lecture was delivered by Dr. Tariq Mahmood at Quaid-i-Azam University for Introduction to Database System. It includes: Database, Systems, Normalization, Design, Anomalies, DBD, Redundancy, Insertion, Minimum, Form

Typology: Slides

2011/2012

Uploaded on 07/13/2012

shona.bacha
shona.bacha 🇵🇰

7 documents

1 / 74

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
In the name of
ALLAH
docsity.com
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a

Partial preview of the text

Download Normalization-Introduction to Database System-Lecture Slides and more Slides Introduction to Database Management Systems in PDF only on Docsity!

In the name of

ALLAH

Introduction to

Database Systems

Lecture 15-05- Spring 2012 docsity.com

Department of Computer Science

Anomalies

 A state of DBD that can lead the DB to inconsistency or incorrect state of database

 Four types of anomalies are of concern here; Redundancy, insertion, deletion and updation

Department of Computer Science

Normalization

 A strongly recommended step

 Normalized design makes the

maintenance of database easier

 Normalization applied on each

table of a DB design

Department of Computer Science

Normalization Process

 Different forms or levels of normalization

 Called first, second, third and so on forms

 Each form has got certain conditions

 If a table fulfils the condition(s) for a normal form then the table is in that normal form

Department of Computer Science

Normalized DB Design

 Process is applied on each table

 The minimum form in which all tables are in is called the normal form of the entire database

 Objective is to place the DB in highest form of normalization

Department of Computer Science

Functional Dependency

Definition: If A and B are attributes

of a relation R, then B is

functionally dependent on A if each

value of A in R is associated with

exactly one value of B; written as

A B

Department of Computer Science

Functionally Dependency

 It does not mean that A derives B, although it may be the case sometime  Means that if we know value of A then we can precisely determine a unique value of B

Department of Computer Science

FD Example

STD(stId, stName, stAdr, prName, credits)

stId stName, stAdr, prName, credits prName credits

Where they come from?

 Common sense with the

meaning of attributes

 Determined by organization

 Judged from sample data

Department of Computer Sciencedocsity.com

Department of Computer Science

FDs and Keys

 A minimal super key is the

candidate key, so if a

determinant of an FD determines

all attributes of that relation then

it is definitely a super key, and

Department of Computer Science

FDs and Keys

 If there is no other FD where a subset of

this determinant/SK is a super key, then

it is a candidate key

 So FDs help to identify keys, how

Department of Computer Science

FDs and Keys

EMP(eId, eName, eAdr, eDept, prId, prSal) eId  eName, eDept, eAdr

eId, prId  prSal STD(stId, stName, prName, adr, nic, cgpa) stId  stName, prName, adr, nic, cgpa nic  stName, prName, adr, stId, cgpa

Department of Computer Science

Inference Rules

 Called inference axioms or armstrong axioms  These are rules that establish certain FDs from a given set of FDs  These rules are sound