0% found this document useful (0 votes)
12 views5 pages

Unf

The document outlines the normalization process of a database, detailing the transition from unnormalized form (UNF) to first (1NF), second (2NF), and third normal forms (3NF) for various entities such as orders, customers, and products. It includes an optimization table and data dictionaries for different entities, specifying attributes, data types, lengths, constraints, and descriptions. The document serves as a comprehensive guide for structuring a relational database to ensure data integrity and reduce redundancy.

Uploaded by

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

Unf

The document outlines the normalization process of a database, detailing the transition from unnormalized form (UNF) to first (1NF), second (2NF), and third normal forms (3NF) for various entities such as orders, customers, and products. It includes an optimization table and data dictionaries for different entities, specifying attributes, data types, lengths, constraints, and descriptions. The document serves as a comprehensive guide for structuring a relational database to ensure data integrity and reduce redundancy.

Uploaded by

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

Unf level 1nf 2nf 3nf

orderId 1 orderId orderId


orderId
orderDate 1 orderDate orderDate
orderDate
ShipDate 1 ShipDate shipID*
ShipDate
shipMode 1 shipMode customerID*
shipMode
customerID 1 customerID
customerID
customerName 1 customerName
customerName
Segment 1 Segment shipID
Segment
Country 1 Country shipDate
Country
City 1 City shipMode
City
State 1 State
State
PostalCode 1 PostalCode customerID
PostalCode
Region 1 Region customerName
Region
ProductIdID 2 Segment
Category 2 orderId* orderId* Country
Sub-category 2 ProductIdID ProductIdID* City
ProductName 2 Category Quantity State
Sales 2 Sub-category Profit PostalCode
Quantity 2 ProductName Region
ProductIdID
Discount 2 Discount
Category
Profit 2 Sales
Sub-category
Quantity orderId*
ProductName
Profit ProductIdID*
Discount
Quantity
Sales
Profit

ProductIdID
ProductName
Discount
Sales
CategoryID*
CategoryID
Category
Sub-category

Optimization Table

Order Customer* Product *


orderId
orderDate ProductIdID
shipID* customerID ProductName
customerID* customerName Discount
Segment Sales
Country CategoryID*
City
State
PostalCode
Region

ShipID* OrderProduct Type*

shipID orderId* CategoryID


shipDate ProductIdID* Category
shipMode Quantity Sub-category
Profit
Data dicionay

Data Dictionary for ShipMode done

Name Data type Length Constraints Description


ShipID Vachar 15 Primary Key
ShipDate Date Not null
ShipMode Vachar 40 Not null

Data Dictionary for Category done

Name Data type Length Constraints Description


Varchar 10 Primary Key
CategoryID

Category Varchar 30 Not null

Sub-category Varchar 40 Not null

Data Dictionary for Customer done

Name Data type Length Constraints Description


customerID Varchar 10 Primary Key

customerName Varchar 15 Not null


Segment Varchar 15 Not null

Country Varchar 40 Not null

City Varchar 50 Not null

State Varchar 50 Not null

PostalCode Varchar/integar 5/- Not null

Region Varchar 50 Not null

Data Dictionary for Product done

Name Data type Length Constraints Description


Varchar 10 Primary Key
ProductID

ProductName Varchar 15 Not null

Discount Dec 10,4 null

Sales Dec 5,2 Not null


CategoryID Varchar 10 Foreign Key

Data Dictionary for OrderProduct

Name Data type Length Constraints Description


orderId Varchar 10 Primary Key,
Foreign Key

ProductIdID Varchar 15 Primary Key,


Foreign Key

Quantity Varchar 15 Not null

Profit Dec 10,4 Not null

Data Dictionary for Orders done

Name Data type Length Constraints Description


orderId Varchar 15 Primary Key

orderDate Date Not null

shipID Varchar 15 Foreign Key

customerID Varchar 15 Foreign Key

You might also like