Relational Database Design: Guidelines for Good Relation Schemas, Slides of Computer Science

The concept of relation schemas in relational database design. It covers the importance of designing easy-to-understand relation schemas, reducing redundant and null values, and avoiding spurious tuples. The document also introduces the concept of functional dependencies as a formal measure of relation schema goodness.

Typology: Slides

2012/2013

Uploaded on 12/31/2013

sunnil
sunnil 🇮🇳

4.1

(9)

36 documents

1 / 71

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
NORMALIZATION
1
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

Partial preview of the text

Download Relational Database Design: Guidelines for Good Relation Schemas and more Slides Computer Science in PDF only on Docsity!

NORMALIZATION

Database

design

methodologies

•^

Bottom

‐up

design

methodology

•^

Top

‐down

design

methodology

Top

‐down

design

methodology

•^

Also

called

design

by

analysis

•^

It^ starts

with

a^

number

of

groupings

of

attributes

into

relations

that

exist

together

naturally.

•^

It^

involves

designing

the

relations

based

on

external

knowledge

derived

from

an

existing

implementation

of^

files

or

forms

or

reports.

•^

The

relations

are

then

analyzed

individually

and

collectively,

leading

to

further

decomposition

until

all

desirable

properties

are

met.

Goodness

of

relation

schemas

•^

Logical

or

conceptual

level

•^

Implementation

or

storage

level

Implementation

or

storage

level

•^

How

the

tuples

in

a^

relation

are

stored

and

updated.

•^

This

level

applies

only

to

schemas

of

base

relations,

which

will

be

physically

stored

as

files.

Informal

design

guidelines

for

relation

schemas

•^

Informal

measures

of

quality

for

relation

schema

design

are:

-^ Semantics

of

the

attributes

-^ Reducing

the

redundant

values

in

tuples

-^ Reducing

the

null

values

in

tuples

-^ Disallowing

the

possibility

of

generating

spurious

tuples

Relation

schemas

violating

Guideline

ENAME

EMPID

DOB

ADDRESS

DNUMBER

DNAME

DMGRID

a)

EMP_DEPT

b) EMP_PROJ EMPID

PNUMBER

HOURS

ENAME

PNAME

PLOCATION

Reducing

the

redundant

values

in

tuples

•^

Mixing

attributes

of

multiple

entities

may

result

in

redundancy

of

data

in

the

database.

•^

Redundant

information

in^

tuples

causes

two

problems:^ – Wastage

of

storage

space

-^ Problem

of

Update

anomalies

Wastage

of

storage

space…………….

PNUMBER

PNAME

PLOCATION

DNUM

ENMAE

EMPID

DOB

ADDRESS

DNUMBER

EMP_PROJ EMPID^ EMPLOYEEPROJECT

PNUMBER

HOURS

ENAME

PNAME

PLOCATION

WORKS_ON

EMPID

PNUMBER

HOURS

REDUNDANCY

REDUNDANCY

Problem

of

Update

Anomalies

•^

Insertion

anomalies

•^

Deletion

anomalies

•^

Modification

anomalies

Insertion

anomalies………………………

ENAME

EMPID

DOB

ADDRESS

DNUMBER

DNAME

DMGRID

EMP_DEPT

•^

An

insertion

anomaly

.^ Until

the

new

faculty

member,

Dr.

Newsome,

is

assigned

to

teach

at

least

one

course,

his

details

cannot

be

recorded.