Introduction of 4th and 5th Normal Form in DBMS
Introduction of 4th and 5th Normal Form in DBMS
Example:
Properties
A relation R is in 4NF if and only if the following conditions
are satisfied:
Table R1
SID SNAME
S1 A
S2 B
Table R2
CID CNAME
C1 C
C2 D
When their cross-product is done it resulted in multivalued
dependencies.
Table R1 X R2
Join Dependency
Joint Dependency
Example:
Table R1
Company Product
C1 Pendrive
C1 mic
C2 speaker
C2 speaker
Company->->Product
Table R2
Agent Company
Aman C1
Aman C2
Mohan C1
Agent->->Company
Table R3
Agent Product
Aman Pendrive
Aman Mic
Aman speaker
Mohan speaker
Agent->->Product
Table R1⋈R2⋈R3
Properties
A relation R is in 5NF if and only if it satisfies the following
conditions:
Table ACP
Table R1
Agent Company
A1 PQR
A1 XYZ
A2 PQR
Table R2
Agent Product
A1 Nut
A1 Bolt
A2 Nut
Table R3
Company Product
PQR Nut
PQR Bolt
XYZ Nut
XYZ Bolt
The result of the Natural Join of R1 and R3 over ‘Company’
and then the Natural Join of R13 and R2 over ‘Agent’and
‘Product’ will be Table ACP.