diff_months: 17

Database Normalization Process From 1NF to 3NF

Download Solution Now
Added on: 2023-11-06 06:58:00
Order Code: CLT320290
Question Task Id: 0
  • Country :

    United States America

Part I

3_nov-1699252898.jpg

Part II

Original Table

SID

CID

S_name

C_name

Grade

Faculty

F_phone

1

IS318

Adams

Database

A

Howser

60192

1

IS301

Adams

Program

B

Langley

45869

2

IS318

Jones

Database

A

Howser

60192

3

IS318

Smith

Database

B

Howser

60192

4

IS301

Baker

Program

A

Langley

45869

4

IS318

Baker

Database

B

Howser

60192

First Normal Form (1NF):

First Normal Form (1NF) is the initial step in database normalization. In this form, a table is required to have a primary key, ensuring each record is unique. All columns must contain atomic values, and there should be no repeating groups or arrays within the table. Essentially, 1NF ensures that data is organized into a two-dimensional table with consistent and non-redundant values.

The table is already in 1NF since each cell contains atomic values.

SID

CID

S_name

C_name

Grade

Faculty

F_phone

1

IS318

Adams

Database

A

Howser

60192

1

IS301

Adams

Program

B

Langley

45869

2

IS318

Jones

Database

A

Howser

60192

3

IS318

Smith

Database

B

Howser

60192

4

IS301

Baker

Program

A

Langley

45869

4

IS318

Baker

Database

B

Howser

60192

Second Normal Form(2NF)

Building upon 1NF, Second Normal Form (2NF) addresses partial dependencies within a table. To qualify for 2NF, a table must first be in 1NF. Moreover, every non-prime attribute (attributes not part of the primary key) must be fully functionally dependent on the entire primary key, eliminating partial dependencies. This ensures that each column in the table contributes directly to the uniqueness of the primary key, promoting a more streamlined and efficient database structure.

To meet the requirements of Second Normal Form (2NF), we need to ensure that all non-key attributes are fully functionally dependent on the entire primary key. So, we can create a separate table for each primary key attribute, including its dependent attributes.

Step 1: Identify the Primary Key

The original table has a composite primary key {SID, CID} since it uniquely identifies each record, and the non-key attributes are {S_name, C_name, Grade, Faculty, F_phone}.

Step 2: Identify Partial Dependencies

  • {SID} partially determines {S_name}.
  • {CID} partially determines {C_name, Faculty, F_phone}.

Step 3: Create Separate Tables for Partial Dependencies

SID

S_name

1

Adams

2

Jones

3

Smith

4

Baker

Course Table(2NF)

CID

C_name

Faculty

F_phone

IS318

Database

Howser

60192

IS301

Program

Langley

45869

Enrolment Table (2NF)

SID

CID

Grade

1

IS318

A

1

IS301

B

2

IS318

A

3

IS318

B

4

IS301

A

4

IS318

B

Now, each table has a single primary key, and non-key attributes are fully functionally dependent on that key, meeting the requirements of 2NF.

Third Normal Form (3NF)

Third Normal Form (3NF) takes normalization a step further by addressing transitive dependencies. A transitive dependency occurs when a non-prime attribute is functionally dependent on another non-prime attribute, rather than on the primary key. A table must meet the requirements of 2NF before progressing to 3NF. In 3NF, non-prime attributes should not depend on other non-prime attributes, eliminating any transitive dependencies. This level of normalization enhances data integrity, reduces redundancy, and ensures that each column's data is solely dependent on the primary key. In essence, 3NF refines the organization of data, contributing to a more robust and reliable database design.

So, for Third Normal Form (3NF), we need to eliminate transitive dependencies.

Step 1: Identify Transitive Dependencies

  • There is a transitive dependency between {CID} and {Faculty, F_phone} in the Course Table.

Step 2: Create New Tables to Remove Transitive Dependencies

`

FID

Faculty

F_phone

1

Howser

60192

2

Langley

45869

Student Table (3NF)

SID

S_name

1

Adams

2

Jones

3

Smith

4

Baker

Course Table(3NF)

CID

C_name

FID

IS318

Database

1

IS301

Program

2

Enrolment Table (3NF)

SID

CID

Grade

1

IS318

A

1

IS301

B

2

IS318

A

3

IS318

B

4

IS301

A

4

IS318

B

Are you struggling to keep up with the demands of your academic journey? Don't worry, we've got your back! Exam Question Bank is your trusted partner in achieving academic excellence for all kind of technical and non-technical subjects. Our comprehensive range of academic services is designed to cater to students at every level. Whether you're a high school student, a college undergraduate, or pursuing advanced studies, we have the expertise and resources to support you.

To connect with expert and ask your query click here Exam Question Bank

  • Uploaded By : Mohit
  • Posted on : November 06th, 2023
  • Downloads : 0
  • Views : 183

Download Solution Now

Can't find what you're looking for?

Whatsapp Tap to ChatGet instant assistance

Choose a Plan

Premium

80 USD
  • All in Gold, plus:
  • 30-minute live one-to-one session with an expert
    • Understanding Marking Rubric
    • Understanding task requirements
    • Structuring & Formatting
    • Referencing & Citing
Most
Popular

Gold

30 50 USD
  • Get the Full Used Solution
    (Solution is already submitted and 100% plagiarised.
    Can only be used for reference purposes)
Save 33%

Silver

20 USD
  • Journals
  • Peer-Reviewed Articles
  • Books
  • Various other Data Sources – ProQuest, Informit, Scopus, Academic Search Complete, EBSCO, Exerpta Medica Database, and more