Week 3 Dbms
Week 3 Dbms
1 NF :The domain of attribute must include only atomic (simple, indivisible) values.
2 NF:A relation schema R is in 2NF if it is in 1NF and every non-prime attribute A inR is
fully functionally dependent on primary key.
3 NF:A relation schema R is in 3NF if it is in 2NF and for every FD X A either of the
following is true
X is a Super-key of R.
A is a prime attribute of R.
In other words, if every non prime attribute is non-transitively dependent on primary key.
5 NF:A Relation schema R is said to be 5NF if for every join dependency {R1, R2...Rn}
that holds R, one the following is true
2. Ri = R for some i.
3. The join dependency is implied by the set of FD, over R in which the left side is key of R.
4. BCNF (Boyce-Codd Normal Form):A relation schema R is in BCNF if it is in 3NFand
satisfies an additional constraint that for every FD X A, X must be a candidate key.
We have divided our 1NF table into two tables viz. Table 1 and Table2. Table 1 contains
member information. Table 2 contains information on movies rented.
We have introduced a new column called Membership_id which is the primary key for table
1. Records can be uniquely identified in Table 1 using membership id
Database - Foreign Key
In Table 2, Membership_ID is the Foreign Key
We have again divided our tables and created a new table which stores Salutations.
There are no transitive functional dependencies, and hence our table is in 3NF
In Table 3 Salutation ID is primary key, and in Table 1 Salutation ID is foreign to primary
key in Table 3
Now our little example is at a level that cannot further be decomposed to attain higher forms
of normalization. In fact, it is already in higher normalization forms. Separate efforts for
moving into next levels of normalizing data are normally needed in complex
databases. However, we will be discussing next levels of normalizations in brief
in the following.
Boyce-Codd Normal Form (BCNF)
Even when a database is in 3rd Normal Form, still there would be anomalies
resulted if it has more than one Candidate Key.
Sometimes is BCNF is also referred as 3.5