Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
P. 1
6 Relational Schema Design

6 Relational Schema Design

Ratings:

5.0

(1)
|Views: 4,050|Likes:
Published by faridkhan

More info:

Published by: faridkhan on May 11, 2009
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

12/25/2012

pdf

text

original

 
Prof P Sreenivasa KumarDepartment of CS&E, IITM1
Database Design and Normal Forms
Database Design
coming up with a ‘good’schema is very importantHow do we characterize the “goodness”of a schema ?If two or more alternative schemas are availablehow do we compare them ?What are the problems with “bad”schema designs ? Normal Forms:Each normal form specifies certain conditionsIf the conditions are satisfied by the schemacertain kind of problems are avoidedDetails follow….
 
Prof P Sreenivasa KumarDepartment of CS&E, IITM2
An Example
student 
relationWe have with studName, rollNo, sex, studDeptasattributes and
department 
relation with deptName, officePhone,HOD.Several students belong to a department. studDeptgives the nameof the student’s department.Correct schema:What are the problems that arise ?
studNamestudNamerollNorollNosexsexstudDeptdeptNamedeptNameofficePhoneofficePhoneHODHOD
Incorrect schema:
StudentDepartmentStudent Dept
 
Prof P Sreenivasa KumarDepartment of CS&E, IITM3
Problems with bad schema
Redundant storage of data:Office Phone & HOD info -stored redundantly
once with each student that belongs to the department
wastage of disk spaceA program that updates Office Phone of a department
must change it at several placesmore running timeerror -proneTransactions running on a database
must take as short time as possible to increase transactionthroughput

Activity (19)

You've already reviewed this. Edit your review.
1 hundred reads
1 thousand reads
Nurul Jannah liked this
Harshali Mhatre liked this
Nlin Lee liked this
Kernel5 liked this
tushar_ingale liked this

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->