SlideShare a Scribd company logo
1 of 29
NORMALIZATION
Prof. Sridhar Vaithianathan
Entities, Attributes and Relationship
 Strong Entity Vs Weak entity ( EMPLOYEE &
DEPENDENT)
 Simple Vs Composite Attributes
 Single Valued Vs Multi Valued Attributes
 Stored Vs Derived Attributes
 Identifier Attribute – Primary Key
 Composite Identifier
 Foreign Key
 Sub-Type Vs Super Type Relationship
Properties of Relations
1. Each relation (or table) in a database has a unique name.
2. An entry at the intersection of each row and column is
atomic (single valued).there can be no multivalued
attributes in a relation.
3. Each row (record) is unique; no two rows in a relation
are identical.
4. Each attribute(or column) within a table has a unique
name.
5. The sequence of columns/rows (left to right/top to
bottom) is insignificant.
Integrity Constraints
 Domain Constraints: All of the values that appear in a column of
a relation must be taken from the same domain.
– A domain is the set of values that may be assigned to an attribute. [Domain
definition usually consists of: domain name, meaning, data type, size
(length), and allowable values/range.]
 Entity Integrity Constraint: No primary key attribute (or
component of primary key attribute) may be null.
– Null: A value that may be assigned to an attribute when no other value
applies or when the applicable value is unknown.
– Null is neither numeric zero nor string of blanks.
– In reality null is not a value but rather absence of a value
 Referential Integrity Constraint: Either each foreign key value
must match a primary key value in another relation or the foreign
key value must be null. ( Eg : Student who has not been assigned any faculty as mentor)
Logical Database Design
1. Top-down approach > E-R modeling
2. Bottom-up approach > Normalization.
Databases : Relational Vs Non-Relational.
What is Normalization?
It is a formal process for deciding which attributes should be
grouped together in relation
It is a step by step decomposition of complex records into simple
records and thereby reducing redundancy
Why Normalize ?
Normalization reduces redundancy. Redundancy is the unnecessary
repetition of data
Redundancy can lead to:
1. Inconsistencies – Errors are more likely to occur when facts are
repeated
2. Update Anomalies
- Inserting, modifying and deleting data may cause
inconsistencies
- High likelihood of updating or deleting data in one table while
omitting to make corresponding changes in other relations
A fully normalized record consists of:
1. A primary key that identifies an entity
2. A set of attributes that describe the entity
Normal forms (NF) are table structures with minimum redundancy
Functional Dependency
Normalization theory is based on the fundamental notion of functional
dependency.
Given a relation R, attribute B is functionally dependent on A if , for
every valid instance of A, that value of A uniquely determines the
value of B.
The functional dependency of B on A is represented as below
A B
Example: Suppose entity CUSTOMER has the following attributes
Cust_Code, Name, Address and Phone_Number.
Cust_Code Name, Address, Phone_Number
Cust_Code Name Address Phone_Number
Boyce -
Codd NF,
4 NF and
5NF
1 NF
2 NF
3 NF
Unnormalized Relation
Steps in Normalization
Steps in Normalization
1. 1NF: A relation is in 1NF if multi-valued attributes (also called
repeating groups) have been removed, so there is a single value
(possibly null) at the intersection of each row and column of the
table.
2. 2NF: A relation is in 2NF if it is in 1NF, and contains no partial
dependencies.
A partial functional dependency in a relation is a functional dependency in
which one or more nonkey attributes are functionally dependent on part
(but not all) of the primary key.
3. 3NF:A relation is in 3NF if it is in 2NF and no transitive
dependencies exist.
A transitive dependency in a relation is a functional dependency between
two (or more) nonkey attributes.
Pine Valley Furniture Company Database
Invoice Data - Pine Valley Furniture Company
1 NF: A relation is in 1NF if multi-valued attributes
(also called repeating groups) have been removed, so
there is a single value (possibly null) at the intersection
of each row and column of the table.
Functional Dependency Diagram for Invoice
A partial functional dependency in a relation is a functional
dependency in which one or more nonkey attributes are
functionally dependent on part (but not all) of the primary
key.
Removing Partial Dependencies
2NF: A relation is in 2NF if it is in 1NF, and contains no
partial dependencies.
A transitive dependency in a relation is a functional
dependency between two (or more) nonkey attributes.
Removing Transitive Dependencies
3NF:A relation is in 3NF if it is in 2NF and no transitive
dependencies exist.
Note to Students: For drawing ER diagram of your project , Try MS Visio, an
easy to use tool to draw the ER Diagram as one shown above
Relational Scheme for INVOICE data
(MS Visio)
SQL – Structured Query Language
SQL Statements
SELECT (select list)
FROM (table List)
WHERE (condition for
retrieval)
ORDER BY (sort criteria)
Example:
SELECT Empno, Ename,
Job, Sal
FROM EMP
WHERE Sal > 2500
ORDER BY Job, Ename
Table : EMP
Empno Ename Job Sal
8756 Dravid President 8000
5348 Raju Manager 5000
SQL – Structured Query Language
SQL Statements
SELECT (select list)
FROM (table List)
WHERE (condition for
retrieval)
ORDER BY (sort criteria)
Example:
SELECT Order Number,
Unit Price *Quantity AS
Total
FROM Order
Normalization - Recap
1. 1NF: A relation is in 1NF if multi-valued attributes (also
called repeating groups) have been removed, so there is a
single value (possibly null) at the intersection of each row and
column of the table.
2. 2NF: A relation is in 2NF if it is in 1NF, and contains no
partial dependencies.
A partial functional dependency in a relation is a functional dependency
in which one or more nonkey attributes are functionally dependent
on part (but not all) of the primary key.
3. 3NF:A relation is in 3NF if it is in 2NF and no transitive
dependencies exist.
A transitive dependency in a relation is a functional dependency
between two (or more) nonkey attributes.
SUMMARY - Normalization – Rules – 1NF TO 3NF
First Normal Form (1NF)
 First normal form (1NF) sets
the very basic rules for an
organized database:
 Eliminate duplicative columns
from the same table.
 Create separate tables for each
group of related data and
identify each row with a unique
column or set of columns (the
primary key).
Second Normal Form (2NF)
 Second normal form (2NF)
further addresses the concept of
removing duplicative data:
 Meet all the requirements of the
first normal form.
 Remove subsets of data that
apply to multiple rows of a
table and place them in separate
tables.
 Create relationships between
these new tables and their
predecessors through the use of
foreign keys.
Third Normal Form (3NF)
•Third normal form (3NF) goes one large step further:
•Meet all the requirements of the second normal form.
•Remove columns that are not dependent upon the primary key.
SUMMARY - Normalization – Rules – 1NF TO 3NF
1NF
 Eliminate Repeating Groups - Make a separate table for
each set of related attributes, and give each table a primary
key.
2NF
 Eliminate Redundant Data - If an attribute depends on only
part of a multi-valued key, remove it to a separate table.
3NF
 Eliminate Columns Not Dependent On Key - If attributes
do not contribute to a description of the key, remove them
to a separate table.
SUMMARY - Normalization – Rules – 1NF TO 3NF
Normalization - Exercises
Normalize
Exercise 1
 Emp _No
 Prof_Designation
 Emp_Name
 Dept_Code
 Dept_Name
 Prof_Office
 Student_Name
 Student_Id
 Student DOB
 Student Age
Exercise 2
 Prod No
 Prod Desc
 Item No
 Salesperson Name
 Customer Name
 Quantity
 Price
Normalize
 Emp No
 Emp Name
 Dept No
 Dept Name
 Mgr No
 Proj No
 Proj Name
 Start Date
 Billing Rate
Normalize
Title Author1 Author
2
ISBN Subject Pages Publisher
Database
System
Concepts
Abraham
Silberschatz
Henry F.
Korth
0072958863 MySQL,
Computers
1168 McGraw-Hill
Operating
System
Concepts
Abraham
Silberschatz
Henry F.
Korth
0471694665 Computers 944 McGraw-Hill
Ism normalization pine valley 2012

More Related Content

What's hot (20)

Functional dependency
Functional dependencyFunctional dependency
Functional dependency
 
Normalization
NormalizationNormalization
Normalization
 
Normalization
NormalizationNormalization
Normalization
 
Database Normalization by Dr. Kamal Gulati
Database Normalization by Dr. Kamal GulatiDatabase Normalization by Dr. Kamal Gulati
Database Normalization by Dr. Kamal Gulati
 
DBMS Question bank
DBMS Question bankDBMS Question bank
DBMS Question bank
 
DATABASE CONSTRAINTS
DATABASE CONSTRAINTSDATABASE CONSTRAINTS
DATABASE CONSTRAINTS
 
Dependency preservation
Dependency preservationDependency preservation
Dependency preservation
 
Functional dependency
Functional dependencyFunctional dependency
Functional dependency
 
Normalization of Data Base
Normalization of Data BaseNormalization of Data Base
Normalization of Data Base
 
Normalization | (1NF) |(2NF) (3NF)|BCNF| 4NF |5NF
Normalization | (1NF) |(2NF) (3NF)|BCNF| 4NF |5NFNormalization | (1NF) |(2NF) (3NF)|BCNF| 4NF |5NF
Normalization | (1NF) |(2NF) (3NF)|BCNF| 4NF |5NF
 
Normalization in DBMS
Normalization in DBMSNormalization in DBMS
Normalization in DBMS
 
Normalization
NormalizationNormalization
Normalization
 
FUNCTION DEPENDENCY AND TYPES & EXAMPLE
FUNCTION DEPENDENCY  AND TYPES & EXAMPLEFUNCTION DEPENDENCY  AND TYPES & EXAMPLE
FUNCTION DEPENDENCY AND TYPES & EXAMPLE
 
Denormalization
DenormalizationDenormalization
Denormalization
 
Database abstraction
Database abstractionDatabase abstraction
Database abstraction
 
Normalization in SQL | Edureka
Normalization in SQL | EdurekaNormalization in SQL | Edureka
Normalization in SQL | Edureka
 
SQL Joins With Examples | Edureka
SQL Joins With Examples | EdurekaSQL Joins With Examples | Edureka
SQL Joins With Examples | Edureka
 
Relational algebra ppt
Relational algebra pptRelational algebra ppt
Relational algebra ppt
 
Databases: Normalisation
Databases: NormalisationDatabases: Normalisation
Databases: Normalisation
 
Dbms normalization
Dbms normalizationDbms normalization
Dbms normalization
 

Viewers also liked

5. relational structure
5. relational structure5. relational structure
5. relational structurekhoahuy82
 
Database design & Normalization (1NF, 2NF, 3NF)
Database design & Normalization (1NF, 2NF, 3NF)Database design & Normalization (1NF, 2NF, 3NF)
Database design & Normalization (1NF, 2NF, 3NF)Jargalsaikhan Alyeksandr
 
Shashi DATABASE FUNCTIONAL DEPENDENCY QUESTION
Shashi  DATABASE FUNCTIONAL DEPENDENCY QUESTIONShashi  DATABASE FUNCTIONAL DEPENDENCY QUESTION
Shashi DATABASE FUNCTIONAL DEPENDENCY QUESTIONShashi Kumar
 
Theory of dependencies in relational database
Theory of dependencies in relational databaseTheory of dependencies in relational database
Theory of dependencies in relational databaseJyoti Ranjan Pattnaik
 
Functional dependencies and normalization
Functional dependencies and normalizationFunctional dependencies and normalization
Functional dependencies and normalizationdaxesh chauhan
 
Normalization in Database
Normalization in DatabaseNormalization in Database
Normalization in DatabaseRoshni Singh
 
data base management system
data base  management systemdata base  management system
data base management systemAkshit R Shah
 
4 the relational data model and relational database constraints
4 the relational data model and relational database constraints4 the relational data model and relational database constraints
4 the relational data model and relational database constraintsKumar
 
Entity Relationship Diagram
Entity Relationship DiagramEntity Relationship Diagram
Entity Relationship DiagramSiti Ismail
 

Viewers also liked (20)

Normlaization
NormlaizationNormlaization
Normlaization
 
5. relational structure
5. relational structure5. relational structure
5. relational structure
 
Database design & Normalization (1NF, 2NF, 3NF)
Database design & Normalization (1NF, 2NF, 3NF)Database design & Normalization (1NF, 2NF, 3NF)
Database design & Normalization (1NF, 2NF, 3NF)
 
2 normalization
2 normalization2 normalization
2 normalization
 
1 fn dependency
1 fn dependency1 fn dependency
1 fn dependency
 
Normalization
NormalizationNormalization
Normalization
 
Shashi DATABASE FUNCTIONAL DEPENDENCY QUESTION
Shashi  DATABASE FUNCTIONAL DEPENDENCY QUESTIONShashi  DATABASE FUNCTIONAL DEPENDENCY QUESTION
Shashi DATABASE FUNCTIONAL DEPENDENCY QUESTION
 
Theory of dependencies in relational database
Theory of dependencies in relational databaseTheory of dependencies in relational database
Theory of dependencies in relational database
 
Ch7
Ch7Ch7
Ch7
 
Entities and attributes
Entities and attributesEntities and attributes
Entities and attributes
 
Normalization
NormalizationNormalization
Normalization
 
Functional dependencies and normalization
Functional dependencies and normalizationFunctional dependencies and normalization
Functional dependencies and normalization
 
Normalization in Database
Normalization in DatabaseNormalization in Database
Normalization in Database
 
Data base ppt
Data base pptData base ppt
Data base ppt
 
Normalization in DBMS
Normalization in DBMSNormalization in DBMS
Normalization in DBMS
 
data base management system
data base  management systemdata base  management system
data base management system
 
4 the relational data model and relational database constraints
4 the relational data model and relational database constraints4 the relational data model and relational database constraints
4 the relational data model and relational database constraints
 
Entity Relationship Diagram
Entity Relationship DiagramEntity Relationship Diagram
Entity Relationship Diagram
 
Ch 3 E R Model
Ch 3  E R  ModelCh 3  E R  Model
Ch 3 E R Model
 
Normalization
NormalizationNormalization
Normalization
 

Similar to Ism normalization pine valley 2012

Structured system analysis and design
Structured system analysis and design Structured system analysis and design
Structured system analysis and design Jayant Dalvi
 
Penormalan/Normalization
Penormalan/NormalizationPenormalan/Normalization
Penormalan/NormalizationJoan Ador
 
The theory of relational databases
The theory of relational databasesThe theory of relational databases
The theory of relational databasesSperasoft
 
Normalization in Database
Normalization in DatabaseNormalization in Database
Normalization in DatabaseA. S. M. Shafi
 
Lecture 02-2-IIS.pptx
Lecture 02-2-IIS.pptxLecture 02-2-IIS.pptx
Lecture 02-2-IIS.pptxAsadkhan47384
 
Database Management Systems 4 - Normalization
Database Management Systems 4 - NormalizationDatabase Management Systems 4 - Normalization
Database Management Systems 4 - NormalizationNickkisha Farrell
 
Advance database system(part 5)
Advance database system(part 5)Advance database system(part 5)
Advance database system(part 5)Abdullah Khosa
 
Advanced Database Systems Ch 1 - Review.pdf
Advanced Database Systems Ch 1 - Review.pdfAdvanced Database Systems Ch 1 - Review.pdf
Advanced Database Systems Ch 1 - Review.pdfvtunali
 
Database normalization
Database normalizationDatabase normalization
Database normalizationEdward Blurock
 
Chapter Four Logical Database Design (Normalization).pptx
Chapter Four Logical Database Design (Normalization).pptxChapter Four Logical Database Design (Normalization).pptx
Chapter Four Logical Database Design (Normalization).pptxhaymanot taddesse
 
Relational Theory for Budding Einsteins -- LonestarPHP 2016
Relational Theory for Budding Einsteins -- LonestarPHP 2016Relational Theory for Budding Einsteins -- LonestarPHP 2016
Relational Theory for Budding Einsteins -- LonestarPHP 2016Dave Stokes
 
Distributed database
Distributed databaseDistributed database
Distributed databaseNasIr Irshad
 
Ibps it officer exam capsule by affairs cloud
Ibps it officer exam capsule by affairs cloudIbps it officer exam capsule by affairs cloud
Ibps it officer exam capsule by affairs cloudaffairs cloud
 
Ibps it officer exam capsule by affairs cloud
Ibps it officer exam capsule by affairs cloudIbps it officer exam capsule by affairs cloud
Ibps it officer exam capsule by affairs cloudaffairs cloud
 
Dbms interview questions
Dbms interview questionsDbms interview questions
Dbms interview questionsambika93
 

Similar to Ism normalization pine valley 2012 (20)

Structured system analysis and design
Structured system analysis and design Structured system analysis and design
Structured system analysis and design
 
Penormalan/Normalization
Penormalan/NormalizationPenormalan/Normalization
Penormalan/Normalization
 
The theory of relational databases
The theory of relational databasesThe theory of relational databases
The theory of relational databases
 
Normalization in Database
Normalization in DatabaseNormalization in Database
Normalization in Database
 
Lecture 02-2-IIS.pptx
Lecture 02-2-IIS.pptxLecture 02-2-IIS.pptx
Lecture 02-2-IIS.pptx
 
Database Management Systems 4 - Normalization
Database Management Systems 4 - NormalizationDatabase Management Systems 4 - Normalization
Database Management Systems 4 - Normalization
 
DATABASE DESIGN.pptx
DATABASE DESIGN.pptxDATABASE DESIGN.pptx
DATABASE DESIGN.pptx
 
Advance database system(part 5)
Advance database system(part 5)Advance database system(part 5)
Advance database system(part 5)
 
Advanced Database Systems Ch 1 - Review.pdf
Advanced Database Systems Ch 1 - Review.pdfAdvanced Database Systems Ch 1 - Review.pdf
Advanced Database Systems Ch 1 - Review.pdf
 
T-SQL Overview
T-SQL OverviewT-SQL Overview
T-SQL Overview
 
Database normalization
Database normalizationDatabase normalization
Database normalization
 
Chapter Four Logical Database Design (Normalization).pptx
Chapter Four Logical Database Design (Normalization).pptxChapter Four Logical Database Design (Normalization).pptx
Chapter Four Logical Database Design (Normalization).pptx
 
DBMS (UNIT 2)
DBMS (UNIT 2)DBMS (UNIT 2)
DBMS (UNIT 2)
 
Relational Theory for Budding Einsteins -- LonestarPHP 2016
Relational Theory for Budding Einsteins -- LonestarPHP 2016Relational Theory for Budding Einsteins -- LonestarPHP 2016
Relational Theory for Budding Einsteins -- LonestarPHP 2016
 
Distributed database
Distributed databaseDistributed database
Distributed database
 
Ibps it officer exam capsule by affairs cloud
Ibps it officer exam capsule by affairs cloudIbps it officer exam capsule by affairs cloud
Ibps it officer exam capsule by affairs cloud
 
Ibps it officer exam capsule by affairs cloud
Ibps it officer exam capsule by affairs cloudIbps it officer exam capsule by affairs cloud
Ibps it officer exam capsule by affairs cloud
 
Dbms interview questions
Dbms interview questionsDbms interview questions
Dbms interview questions
 
unit-3_Chapter1_RDRA.pdf
unit-3_Chapter1_RDRA.pdfunit-3_Chapter1_RDRA.pdf
unit-3_Chapter1_RDRA.pdf
 
Normal forms.ppt
Normal forms.pptNormal forms.ppt
Normal forms.ppt
 

Recently uploaded

KALENDAR KUDA 2024 Hi resolution cuti umum.pdf
KALENDAR KUDA 2024 Hi resolution cuti umum.pdfKALENDAR KUDA 2024 Hi resolution cuti umum.pdf
KALENDAR KUDA 2024 Hi resolution cuti umum.pdfSallamSulaiman
 
Mushkan 8126941651 Call Girls Servicein Jammu
Mushkan 8126941651 Call Girls Servicein JammuMushkan 8126941651 Call Girls Servicein Jammu
Mushkan 8126941651 Call Girls Servicein Jammujaanseema653
 
My Personal Testimony - James Eugene Barbush - March 11, 2024
My Personal Testimony - James Eugene Barbush - March 11, 2024My Personal Testimony - James Eugene Barbush - March 11, 2024
My Personal Testimony - James Eugene Barbush - March 11, 2024JAMES EUGENE BARBUSH
 
Jumeirah Call Girls Dubai Concupis O528786472 Dubai Call Girls In Bur Dubai N...
Jumeirah Call Girls Dubai Concupis O528786472 Dubai Call Girls In Bur Dubai N...Jumeirah Call Girls Dubai Concupis O528786472 Dubai Call Girls In Bur Dubai N...
Jumeirah Call Girls Dubai Concupis O528786472 Dubai Call Girls In Bur Dubai N...hf8803863
 
❤️Call Girls In Chandigarh 08168329307 Dera Bassi Zirakpur Panchkula Escort S...
❤️Call Girls In Chandigarh 08168329307 Dera Bassi Zirakpur Panchkula Escort S...❤️Call Girls In Chandigarh 08168329307 Dera Bassi Zirakpur Panchkula Escort S...
❤️Call Girls In Chandigarh 08168329307 Dera Bassi Zirakpur Panchkula Escort S...Apsara Of India
 
💞5✨ Hotel Karnal Call Girls 08168329307 Noor Mahal Karnal Escort Service
💞5✨ Hotel Karnal Call Girls 08168329307 Noor Mahal Karnal Escort Service💞5✨ Hotel Karnal Call Girls 08168329307 Noor Mahal Karnal Escort Service
💞5✨ Hotel Karnal Call Girls 08168329307 Noor Mahal Karnal Escort ServiceApsara Of India
 
Mumbai Call Girls Andheri East WhatsApp 9167673311 💞 Full Night Enjoy Pooja M...
Mumbai Call Girls Andheri East WhatsApp 9167673311 💞 Full Night Enjoy Pooja M...Mumbai Call Girls Andheri East WhatsApp 9167673311 💞 Full Night Enjoy Pooja M...
Mumbai Call Girls Andheri East WhatsApp 9167673311 💞 Full Night Enjoy Pooja M...Pooja Nehwal
 
Youthlab Indonesia Gen-Z Lifestyle Chart
Youthlab Indonesia Gen-Z Lifestyle ChartYouthlab Indonesia Gen-Z Lifestyle Chart
Youthlab Indonesia Gen-Z Lifestyle ChartYouthLab
 
Call Girls in civil lines Delhi 8264348440 ✅ call girls ❤️
Call Girls in civil lines Delhi 8264348440 ✅ call girls ❤️Call Girls in civil lines Delhi 8264348440 ✅ call girls ❤️
Call Girls in civil lines Delhi 8264348440 ✅ call girls ❤️soniya singh
 
💞Sexy Call Girls In Ambala 08168329307 Shahabad Call Girls Escort Service
💞Sexy Call Girls In Ambala 08168329307 Shahabad Call Girls Escort Service💞Sexy Call Girls In Ambala 08168329307 Shahabad Call Girls Escort Service
💞Sexy Call Girls In Ambala 08168329307 Shahabad Call Girls Escort ServiceApsara Of India
 
Panipat Call Girls in Five Star Services Call 08860008073
Panipat Call Girls in Five Star Services Call 08860008073 Panipat Call Girls in Five Star Services Call 08860008073
Panipat Call Girls in Five Star Services Call 08860008073 Apsara Of India
 
💕COD Call Girls In Kurukshetra 08168329307 Pehowa Escort Service
💕COD Call Girls In Kurukshetra 08168329307 Pehowa Escort Service💕COD Call Girls In Kurukshetra 08168329307 Pehowa Escort Service
💕COD Call Girls In Kurukshetra 08168329307 Pehowa Escort ServiceApsara Of India
 
Dubai Call Girls Big Tit Wives O528786472 Call Girls Dubai
Dubai Call Girls Big Tit Wives O528786472 Call Girls DubaiDubai Call Girls Big Tit Wives O528786472 Call Girls Dubai
Dubai Call Girls Big Tit Wives O528786472 Call Girls Dubaihf8803863
 
Call Girls In Lajpat Nagar__ 8448079011 __Escort Service In Delhi
Call Girls In Lajpat Nagar__ 8448079011 __Escort Service In DelhiCall Girls In Lajpat Nagar__ 8448079011 __Escort Service In Delhi
Call Girls In Lajpat Nagar__ 8448079011 __Escort Service In DelhiRaviSingh594208
 
10 Tips To Be More Disciplined In Life To Be Successful | Amit Kakkar Healthyway
10 Tips To Be More Disciplined In Life To Be Successful | Amit Kakkar Healthyway10 Tips To Be More Disciplined In Life To Be Successful | Amit Kakkar Healthyway
10 Tips To Be More Disciplined In Life To Be Successful | Amit Kakkar HealthywayAmit Kakkar Healthyway
 
Call Girls In Panipat 08860008073 ✨Top Call Girl Service Panipat Escorts
Call Girls In Panipat 08860008073 ✨Top Call Girl Service Panipat EscortsCall Girls In Panipat 08860008073 ✨Top Call Girl Service Panipat Escorts
Call Girls In Panipat 08860008073 ✨Top Call Girl Service Panipat EscortsApsara Of India
 
AliExpress Clothing Brand Media Planning
AliExpress Clothing Brand Media PlanningAliExpress Clothing Brand Media Planning
AliExpress Clothing Brand Media Planningjen_giacalone
 
💞SEXY💞 UDAIPUR ESCORTS 09602870969 CaLL GiRLS in UdAiPuR EsCoRt SeRvIcE💞
💞SEXY💞 UDAIPUR ESCORTS 09602870969 CaLL GiRLS in UdAiPuR EsCoRt SeRvIcE💞💞SEXY💞 UDAIPUR ESCORTS 09602870969 CaLL GiRLS in UdAiPuR EsCoRt SeRvIcE💞
💞SEXY💞 UDAIPUR ESCORTS 09602870969 CaLL GiRLS in UdAiPuR EsCoRt SeRvIcE💞Apsara Of India
 
Call Girls {Delhi Meet Payal Pitampura} 9711199012 Indepedemt Girls Delhi
Call Girls {Delhi Meet Payal Pitampura} 9711199012 Indepedemt Girls DelhiCall Girls {Delhi Meet Payal Pitampura} 9711199012 Indepedemt Girls Delhi
Call Girls {Delhi Meet Payal Pitampura} 9711199012 Indepedemt Girls DelhiMs Riya
 
Best VIP Call Girls Noida Sector 18 Call Me: 8264348440
Best VIP Call Girls Noida Sector 18 Call Me: 8264348440Best VIP Call Girls Noida Sector 18 Call Me: 8264348440
Best VIP Call Girls Noida Sector 18 Call Me: 8264348440soniya singh
 

Recently uploaded (20)

KALENDAR KUDA 2024 Hi resolution cuti umum.pdf
KALENDAR KUDA 2024 Hi resolution cuti umum.pdfKALENDAR KUDA 2024 Hi resolution cuti umum.pdf
KALENDAR KUDA 2024 Hi resolution cuti umum.pdf
 
Mushkan 8126941651 Call Girls Servicein Jammu
Mushkan 8126941651 Call Girls Servicein JammuMushkan 8126941651 Call Girls Servicein Jammu
Mushkan 8126941651 Call Girls Servicein Jammu
 
My Personal Testimony - James Eugene Barbush - March 11, 2024
My Personal Testimony - James Eugene Barbush - March 11, 2024My Personal Testimony - James Eugene Barbush - March 11, 2024
My Personal Testimony - James Eugene Barbush - March 11, 2024
 
Jumeirah Call Girls Dubai Concupis O528786472 Dubai Call Girls In Bur Dubai N...
Jumeirah Call Girls Dubai Concupis O528786472 Dubai Call Girls In Bur Dubai N...Jumeirah Call Girls Dubai Concupis O528786472 Dubai Call Girls In Bur Dubai N...
Jumeirah Call Girls Dubai Concupis O528786472 Dubai Call Girls In Bur Dubai N...
 
❤️Call Girls In Chandigarh 08168329307 Dera Bassi Zirakpur Panchkula Escort S...
❤️Call Girls In Chandigarh 08168329307 Dera Bassi Zirakpur Panchkula Escort S...❤️Call Girls In Chandigarh 08168329307 Dera Bassi Zirakpur Panchkula Escort S...
❤️Call Girls In Chandigarh 08168329307 Dera Bassi Zirakpur Panchkula Escort S...
 
💞5✨ Hotel Karnal Call Girls 08168329307 Noor Mahal Karnal Escort Service
💞5✨ Hotel Karnal Call Girls 08168329307 Noor Mahal Karnal Escort Service💞5✨ Hotel Karnal Call Girls 08168329307 Noor Mahal Karnal Escort Service
💞5✨ Hotel Karnal Call Girls 08168329307 Noor Mahal Karnal Escort Service
 
Mumbai Call Girls Andheri East WhatsApp 9167673311 💞 Full Night Enjoy Pooja M...
Mumbai Call Girls Andheri East WhatsApp 9167673311 💞 Full Night Enjoy Pooja M...Mumbai Call Girls Andheri East WhatsApp 9167673311 💞 Full Night Enjoy Pooja M...
Mumbai Call Girls Andheri East WhatsApp 9167673311 💞 Full Night Enjoy Pooja M...
 
Youthlab Indonesia Gen-Z Lifestyle Chart
Youthlab Indonesia Gen-Z Lifestyle ChartYouthlab Indonesia Gen-Z Lifestyle Chart
Youthlab Indonesia Gen-Z Lifestyle Chart
 
Call Girls in civil lines Delhi 8264348440 ✅ call girls ❤️
Call Girls in civil lines Delhi 8264348440 ✅ call girls ❤️Call Girls in civil lines Delhi 8264348440 ✅ call girls ❤️
Call Girls in civil lines Delhi 8264348440 ✅ call girls ❤️
 
💞Sexy Call Girls In Ambala 08168329307 Shahabad Call Girls Escort Service
💞Sexy Call Girls In Ambala 08168329307 Shahabad Call Girls Escort Service💞Sexy Call Girls In Ambala 08168329307 Shahabad Call Girls Escort Service
💞Sexy Call Girls In Ambala 08168329307 Shahabad Call Girls Escort Service
 
Panipat Call Girls in Five Star Services Call 08860008073
Panipat Call Girls in Five Star Services Call 08860008073 Panipat Call Girls in Five Star Services Call 08860008073
Panipat Call Girls in Five Star Services Call 08860008073
 
💕COD Call Girls In Kurukshetra 08168329307 Pehowa Escort Service
💕COD Call Girls In Kurukshetra 08168329307 Pehowa Escort Service💕COD Call Girls In Kurukshetra 08168329307 Pehowa Escort Service
💕COD Call Girls In Kurukshetra 08168329307 Pehowa Escort Service
 
Dubai Call Girls Big Tit Wives O528786472 Call Girls Dubai
Dubai Call Girls Big Tit Wives O528786472 Call Girls DubaiDubai Call Girls Big Tit Wives O528786472 Call Girls Dubai
Dubai Call Girls Big Tit Wives O528786472 Call Girls Dubai
 
Call Girls In Lajpat Nagar__ 8448079011 __Escort Service In Delhi
Call Girls In Lajpat Nagar__ 8448079011 __Escort Service In DelhiCall Girls In Lajpat Nagar__ 8448079011 __Escort Service In Delhi
Call Girls In Lajpat Nagar__ 8448079011 __Escort Service In Delhi
 
10 Tips To Be More Disciplined In Life To Be Successful | Amit Kakkar Healthyway
10 Tips To Be More Disciplined In Life To Be Successful | Amit Kakkar Healthyway10 Tips To Be More Disciplined In Life To Be Successful | Amit Kakkar Healthyway
10 Tips To Be More Disciplined In Life To Be Successful | Amit Kakkar Healthyway
 
Call Girls In Panipat 08860008073 ✨Top Call Girl Service Panipat Escorts
Call Girls In Panipat 08860008073 ✨Top Call Girl Service Panipat EscortsCall Girls In Panipat 08860008073 ✨Top Call Girl Service Panipat Escorts
Call Girls In Panipat 08860008073 ✨Top Call Girl Service Panipat Escorts
 
AliExpress Clothing Brand Media Planning
AliExpress Clothing Brand Media PlanningAliExpress Clothing Brand Media Planning
AliExpress Clothing Brand Media Planning
 
💞SEXY💞 UDAIPUR ESCORTS 09602870969 CaLL GiRLS in UdAiPuR EsCoRt SeRvIcE💞
💞SEXY💞 UDAIPUR ESCORTS 09602870969 CaLL GiRLS in UdAiPuR EsCoRt SeRvIcE💞💞SEXY💞 UDAIPUR ESCORTS 09602870969 CaLL GiRLS in UdAiPuR EsCoRt SeRvIcE💞
💞SEXY💞 UDAIPUR ESCORTS 09602870969 CaLL GiRLS in UdAiPuR EsCoRt SeRvIcE💞
 
Call Girls {Delhi Meet Payal Pitampura} 9711199012 Indepedemt Girls Delhi
Call Girls {Delhi Meet Payal Pitampura} 9711199012 Indepedemt Girls DelhiCall Girls {Delhi Meet Payal Pitampura} 9711199012 Indepedemt Girls Delhi
Call Girls {Delhi Meet Payal Pitampura} 9711199012 Indepedemt Girls Delhi
 
Best VIP Call Girls Noida Sector 18 Call Me: 8264348440
Best VIP Call Girls Noida Sector 18 Call Me: 8264348440Best VIP Call Girls Noida Sector 18 Call Me: 8264348440
Best VIP Call Girls Noida Sector 18 Call Me: 8264348440
 

Ism normalization pine valley 2012

  • 2. Entities, Attributes and Relationship  Strong Entity Vs Weak entity ( EMPLOYEE & DEPENDENT)  Simple Vs Composite Attributes  Single Valued Vs Multi Valued Attributes  Stored Vs Derived Attributes  Identifier Attribute – Primary Key  Composite Identifier  Foreign Key  Sub-Type Vs Super Type Relationship
  • 3. Properties of Relations 1. Each relation (or table) in a database has a unique name. 2. An entry at the intersection of each row and column is atomic (single valued).there can be no multivalued attributes in a relation. 3. Each row (record) is unique; no two rows in a relation are identical. 4. Each attribute(or column) within a table has a unique name. 5. The sequence of columns/rows (left to right/top to bottom) is insignificant.
  • 4.
  • 5. Integrity Constraints  Domain Constraints: All of the values that appear in a column of a relation must be taken from the same domain. – A domain is the set of values that may be assigned to an attribute. [Domain definition usually consists of: domain name, meaning, data type, size (length), and allowable values/range.]  Entity Integrity Constraint: No primary key attribute (or component of primary key attribute) may be null. – Null: A value that may be assigned to an attribute when no other value applies or when the applicable value is unknown. – Null is neither numeric zero nor string of blanks. – In reality null is not a value but rather absence of a value  Referential Integrity Constraint: Either each foreign key value must match a primary key value in another relation or the foreign key value must be null. ( Eg : Student who has not been assigned any faculty as mentor)
  • 6. Logical Database Design 1. Top-down approach > E-R modeling 2. Bottom-up approach > Normalization. Databases : Relational Vs Non-Relational. What is Normalization? It is a formal process for deciding which attributes should be grouped together in relation It is a step by step decomposition of complex records into simple records and thereby reducing redundancy Why Normalize ? Normalization reduces redundancy. Redundancy is the unnecessary repetition of data
  • 7. Redundancy can lead to: 1. Inconsistencies – Errors are more likely to occur when facts are repeated 2. Update Anomalies - Inserting, modifying and deleting data may cause inconsistencies - High likelihood of updating or deleting data in one table while omitting to make corresponding changes in other relations A fully normalized record consists of: 1. A primary key that identifies an entity 2. A set of attributes that describe the entity Normal forms (NF) are table structures with minimum redundancy
  • 8. Functional Dependency Normalization theory is based on the fundamental notion of functional dependency. Given a relation R, attribute B is functionally dependent on A if , for every valid instance of A, that value of A uniquely determines the value of B. The functional dependency of B on A is represented as below A B Example: Suppose entity CUSTOMER has the following attributes Cust_Code, Name, Address and Phone_Number. Cust_Code Name, Address, Phone_Number Cust_Code Name Address Phone_Number
  • 9. Boyce - Codd NF, 4 NF and 5NF 1 NF 2 NF 3 NF Unnormalized Relation Steps in Normalization
  • 10. Steps in Normalization 1. 1NF: A relation is in 1NF if multi-valued attributes (also called repeating groups) have been removed, so there is a single value (possibly null) at the intersection of each row and column of the table. 2. 2NF: A relation is in 2NF if it is in 1NF, and contains no partial dependencies. A partial functional dependency in a relation is a functional dependency in which one or more nonkey attributes are functionally dependent on part (but not all) of the primary key. 3. 3NF:A relation is in 3NF if it is in 2NF and no transitive dependencies exist. A transitive dependency in a relation is a functional dependency between two (or more) nonkey attributes.
  • 11. Pine Valley Furniture Company Database
  • 12. Invoice Data - Pine Valley Furniture Company
  • 13. 1 NF: A relation is in 1NF if multi-valued attributes (also called repeating groups) have been removed, so there is a single value (possibly null) at the intersection of each row and column of the table.
  • 14. Functional Dependency Diagram for Invoice A partial functional dependency in a relation is a functional dependency in which one or more nonkey attributes are functionally dependent on part (but not all) of the primary key.
  • 15. Removing Partial Dependencies 2NF: A relation is in 2NF if it is in 1NF, and contains no partial dependencies. A transitive dependency in a relation is a functional dependency between two (or more) nonkey attributes.
  • 16. Removing Transitive Dependencies 3NF:A relation is in 3NF if it is in 2NF and no transitive dependencies exist.
  • 17. Note to Students: For drawing ER diagram of your project , Try MS Visio, an easy to use tool to draw the ER Diagram as one shown above Relational Scheme for INVOICE data (MS Visio)
  • 18. SQL – Structured Query Language SQL Statements SELECT (select list) FROM (table List) WHERE (condition for retrieval) ORDER BY (sort criteria) Example: SELECT Empno, Ename, Job, Sal FROM EMP WHERE Sal > 2500 ORDER BY Job, Ename Table : EMP Empno Ename Job Sal 8756 Dravid President 8000 5348 Raju Manager 5000
  • 19. SQL – Structured Query Language SQL Statements SELECT (select list) FROM (table List) WHERE (condition for retrieval) ORDER BY (sort criteria) Example: SELECT Order Number, Unit Price *Quantity AS Total FROM Order
  • 21. 1. 1NF: A relation is in 1NF if multi-valued attributes (also called repeating groups) have been removed, so there is a single value (possibly null) at the intersection of each row and column of the table. 2. 2NF: A relation is in 2NF if it is in 1NF, and contains no partial dependencies. A partial functional dependency in a relation is a functional dependency in which one or more nonkey attributes are functionally dependent on part (but not all) of the primary key. 3. 3NF:A relation is in 3NF if it is in 2NF and no transitive dependencies exist. A transitive dependency in a relation is a functional dependency between two (or more) nonkey attributes. SUMMARY - Normalization – Rules – 1NF TO 3NF
  • 22. First Normal Form (1NF)  First normal form (1NF) sets the very basic rules for an organized database:  Eliminate duplicative columns from the same table.  Create separate tables for each group of related data and identify each row with a unique column or set of columns (the primary key). Second Normal Form (2NF)  Second normal form (2NF) further addresses the concept of removing duplicative data:  Meet all the requirements of the first normal form.  Remove subsets of data that apply to multiple rows of a table and place them in separate tables.  Create relationships between these new tables and their predecessors through the use of foreign keys. Third Normal Form (3NF) •Third normal form (3NF) goes one large step further: •Meet all the requirements of the second normal form. •Remove columns that are not dependent upon the primary key. SUMMARY - Normalization – Rules – 1NF TO 3NF
  • 23. 1NF  Eliminate Repeating Groups - Make a separate table for each set of related attributes, and give each table a primary key. 2NF  Eliminate Redundant Data - If an attribute depends on only part of a multi-valued key, remove it to a separate table. 3NF  Eliminate Columns Not Dependent On Key - If attributes do not contribute to a description of the key, remove them to a separate table. SUMMARY - Normalization – Rules – 1NF TO 3NF
  • 25.
  • 26. Normalize Exercise 1  Emp _No  Prof_Designation  Emp_Name  Dept_Code  Dept_Name  Prof_Office  Student_Name  Student_Id  Student DOB  Student Age Exercise 2  Prod No  Prod Desc  Item No  Salesperson Name  Customer Name  Quantity  Price
  • 27. Normalize  Emp No  Emp Name  Dept No  Dept Name  Mgr No  Proj No  Proj Name  Start Date  Billing Rate
  • 28. Normalize Title Author1 Author 2 ISBN Subject Pages Publisher Database System Concepts Abraham Silberschatz Henry F. Korth 0072958863 MySQL, Computers 1168 McGraw-Hill Operating System Concepts Abraham Silberschatz Henry F. Korth 0471694665 Computers 944 McGraw-Hill