Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 11

NORMALIZE THE RELATION UNTIL 3NF

1. Table with multivalued attributes, not in 1st normal form

INVOICE

2. Normalize the table below


AHLI KUMPULAN : 1) LHOGESWARAN A/L RAVI (21DDT23F1411)
Question 1 :

First normal form (1 NF)

OrderID Order Date Customer Customer Customer Product Product Product Product Ordered

ID Name Address Id Description Finish Standard Quantity

Price

1006 10/24/2010 2 Value Piano,TX 7 Dining Table Natural 800.00 2

Furniture Ash

1006 10/24/2010 2 Value Piano,TX 5 Writer’s Desk Cherry 325.00 2

Furniture

1006 10/24/10 2 Value Piano,TX 4 Entertainment Natural 650.00 1

Furniture Center Maple

1007 10/25/10 6 Furniture Boulder, 11 4-Dr Dresser Oak 500.00 4

Gallery Co

1007 10/25/10 6 Furniture Boulder, 4 Entertainment Natural 650.00 3

Gallery Co Center Maple


Second normal form (2NF)

ORDER

OrderId Order Date Ordered Quantity

1006 10/24/2010 2

1006 10/24/2010 2

1006 10/24/2010 1

1007 10/25/2010 4

1007 10/25/2010 3

CUSTOMER

Customer ID Customer Name Customer Address

2 Value Furniture Piano,TX

6 Furniture Gallery Boulder,Co

PRODUCT

ProductID Product Description Product Finish Product StandardPrice

7 Dining Table Natural Ash 800.00

5 Writer’s Desk Cherry 325.00

4 Entertainment Center Natural Maple 650.00

11 4-DR Dresser Oak 500.00

4 Entertainment Center Natural Maple 650.00


Third normal form (3NF)

ORDER

OrderId Order Date Ordered Quantity

1006 10/24/2010 2

1006 10/24/2010 2

1006 10/24/2010 1

1007 10/25/2010 4

1007 10/25/2010 3

CUSTOMER

Customer ID Customer Name Customer Address

2 Value Furniture Piano,TX

6 Furniture Gallery Boulder,Co


PRODUCTFINISH

ProductID Product Description Product Finish

7 Dining Table Natural Ash

5 Writer’s Desk Cherry

4 Entertainment Center Natural Maple

11 4-DR Dresser Oak

4 Entertainment Center Natural Maple

PRICEFINISH

Product Finish Product Standard Price

Natural Ash 800.00

Cherry 325.00

Natural Maple 650.00

Oak 500.00

Natural Maple 650.00


Question 2:

First normal form (1NF)

RegID FirstName CourseCode Course Duration LecturerName ContactNo

1912 Shizuka DM2334 Matematik 60 days Minamoto 234

1912 Shizuka GR2243 Geografi 2 55 days Espinela 989

1923 Suneo SN2113 Sains 55 days Espinela 435

1923 Suneo GR1243 Geografi 45 days Espinela 435

1976 Mii Chan SJ4388 Sejarah 50 days Goro 417

1899 Doraemon AG5699 Agama 50 days Goro 417

1956 Nobita AG5699 Agama 50 days Takeshi 395


Second normal form (2NF)

COURSE

Course CourseCode Duration

DM2334 Matematik 60 Days

GR2243 Geografi 2 55 Days

SN2113 Sains 55 Days

GR1243 Geografi 45 Days

SJ4388 Sejarah 50 Days

AG5699 Agama 50 Days

AG5699 Agama 50 Days

STUDENT

RegID FirstName

1912 Shizuka

1912 Shizuka

1923 Suneo

1923 Suneo

1976 Mii Chan

1899 Doraemon

1956 Nobita
COURSETEACHER

LecturerName ContactNo

Minamoto 234

Espinela 989

Espinela 435

Espinela 435

Goro 417

Goro 417

Takeshi 395
THIRD NORMAL FORM (3NF)

LecturerName ContactNo

Minamoto 234

Espinela 989

Espinela 435

Espinela 435

Goro 417

Goro 417

Takeshi 395
NAMA BUKU

PENULIS PUBLISHER

DATABASE SYSTEM CONCEPTS THE McGRAW-HILL


COMPANIES
S.SUDARSHAN

You might also like