10
Database Design

Database design

Embed Size (px)

Citation preview

Page 1: Database design

Database Design

Page 2: Database design

Normalization

• Data Protection

• Redundant data

• Inconsistent dependency

Page 3: Database design

First Normal Form

• There should not be any repeating columns

• Eliminate repeating groups in individual tables.

• Create a separate table for each set of related data.

• Identify each set of related data with a primary key.

Page 4: Database design

Second Normal Form

• Three should not be any functional dependency between key column and non key column

• Create separate tables for sets of values that apply to multiple records.

• Relate these tables with a foreign key.

Page 5: Database design

Third Normal Form

• There should not be any functional dependency between two non key columns

• Eliminate fields that do not depend on the key.

Page 6: Database design

One To One

• Student

• Student Detail

Page 7: Database design

One To Many

• Student

• Phone Number

Page 8: Database design

Many To Many

• Department

• Faculty

Page 9: Database design

What is the nature of the application?

• OLTP

• OLAP

Page 10: Database design

THANK YOU