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

Data base homework 5

The document outlines various database normalization tasks, including splitting tables to eliminate redundancy and ensure each attribute contains only one value per tuple. It discusses the transformation of phone numbers, tournament winners, product colors, purchases, books, and project-related data into normalized forms. Each section provides examples of how to restructure the data to meet normalization requirements.

Uploaded by

rowen prather
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)
17 views

Data base homework 5

The document outlines various database normalization tasks, including splitting tables to eliminate redundancy and ensure each attribute contains only one value per tuple. It discusses the transformation of phone numbers, tournament winners, product colors, purchases, books, and project-related data into normalized forms. Each section provides examples of how to restructure the data to meet normalization requirements.

Uploaded by

rowen prather
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/ 2

Data base homework 5

A) You split up the phone number because it had more then one instance in the first table or you
could just create another tuple in the original relation so that each line has only one term in
each attribute of each tuple.

Customer ID First name Surname


123 robert Ingram
456 jane Wright
789 Maria Fernandez

Customer id Telephone number


123 555-861-2025
456 555-403-1659
456 555-776-4100
789 555-808-9633

B) the table given is in 2n form, the attributes are dependent on the primary key

C) in the third table of the tournament relation you would have to split the table

Tournament winners (tournament, year, winner) and winners(winner, winner_bod)

5-2 make it to where there is only one color in each tuple

Product ID Color Price

1 Red 10

1 Green 10

2 Yellow 20

3 Green 15

4 Yellow 17

4 Blue 17

5 Red 22

5-3 split the purchase table into purchase (custID, StoreID) and store location (StoreID, Location)

Cust ID Store ID
1 1
1 3
2 1
3 2
4 3

Store ID Location
1 LA
2 NY
3 SF

5-4 you could split the book table into book table (BookID, GenreID, price) and book genre (GenreID,
Genretype)

Book ID Genre ID price


1 1 20
2 2 35
3 1 17
4 3 26
5 2 31

Genre ID Genre type


1 science
2 sports
3 movie

5-5 the relation is in 1nf already but some of the aattributes aren’t filled so they would need to be. After
that I would sperate the relation in to three different ones.

Projects (Project_code, Project_title, Project Manager, Project_budget, employee no.)

Employees (Employee_no., employee name, department no., hourly rate)

Departments (Department no., department name)

You might also like