0% found this document useful (0 votes)
0 views

Programming Assignment Unit 4 Solution

The document outlines the normalization rules for database design, specifically focusing on the 1st, 2nd, and 3rd Normal Forms. It emphasizes the importance of eliminating multivalued attributes and ensuring that non-key attributes depend solely on the entire candidate key. Additionally, it provides an example of how to restructure relations in an E-R diagram to adhere to these normalization standards.

Uploaded by

zelalem
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
0 views

Programming Assignment Unit 4 Solution

The document outlines the normalization rules for database design, specifically focusing on the 1st, 2nd, and 3rd Normal Forms. It emphasizes the importance of eliminating multivalued attributes and ensuring that non-key attributes depend solely on the entire candidate key. Additionally, it provides an example of how to restructure relations in an E-R diagram to adhere to these normalization standards.

Uploaded by

zelalem
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Programming Assignment Unit 4 - Solution

E-R Diagram in 3rd Normal Form

Normalization Rules

1st Normal Form

• There is no top-to-bottom ordering to the rows


• There is no left-to-right ordering to the columns
• There are no duplicate rows
• Every row-and-column intersection contains exactly one value from the applicable
domain (and nothing else)
• All columns are regular

When determining 1st Normal Form, you should ask yourself: Are there any repeating
groups or multivalued attributes? If there are, you should determine how they should be
broken into relations and related to the existing relations?

Now look at the Appointment and Patient relations. Medicines attribute of Appointment
and Allergies attribute of Patient are actually multivalued attributes. Each of these requires
a new relation and a linking relation as shown in E-R diagram below.

2nd Normal Form

• Relations are in 1NF


• There is no such non-key attributes that depends upon part of the candidate key but on
the entire candidate key

There are no changes required to 2nd Normal Form.

3rd Normal Form

• Relations are in 2NF


• There is no such non-key attribute that depends transitively on the candidate key

As you can see in Doctor relation; SpecialtyName which is a non-key attribute depends
transitively on SpecialtyNumber. Therefore, we need to create a new relation as shown in
E-R diagram below.
rd
Figure 1: E-R Diagram in 3 Normal Form

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy