Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Exercises on Normalization Given the relation and functional dependencies; Example: STUDENT ( StudentNo , Name, PrimaryMajor, School ) FDs: StudentNo - > Name, PrimaryMajor, PrimaryMajor

Exercises on Normalization
Given the relation and functional dependencies;
Example: STUDENT (StudentNo, Name, PrimaryMajor, School)
FDs: StudentNo -> Name, PrimaryMajor, PrimaryMajor -> School
1. Candidate key is StudentNo, as if we know StudentNo we can find all other attributes from it
2. The original relation is in 2NF. There are no partial FDs so it is in 2NF at least. It is not in 3NF as
there is a transitive FD StudentNo -> PrimaryMajor -> School
3.3NF relations:
STUDENT (StudentNo, Name, PrimaryMajor)
MAJOR (PrimaryMajor, School)
2
Given the following relation and functional dependencies:
a) Identify the candidate key(s) and partial functional dependencies among attributes (If any)
b) Explain which NF the relation is in.
c) Convert the relation into a relation or set of relations in at least 3NF
Q1. ENROLS (StudentNo, Name, UnitCode, UnitName, Grade)
FDs: StudentNo -> Name
UnitCode -> UnitName
StudentNo, UnitCode -> Grade
Q2. Each loan application is by one customer but each customer may make many applications
ApplicNo Customer Address Date Appr
X97 JoeBlog Perth 2/3
X99 Vicki Sydney 3/3
Y72 JoeBlog Perth 3/3
Converting the table to a relation
Q3: Given the following table:
Part No Description Vendor Address UnitCost
1234 Logic Chip Fast Chips Perth 10.00
Smart Chips Sydney 5.00
5678 Memory chip Fast Chips Perth 3.00
Quality Chips Sydney 2.00
Smart Chips Sydney 5.00
3
a) Convert this table to a single relation (called PART-SUPPLIER) in first normal form. Illustrate the
relation with the same sample data.
b) List the functional dependencies in PART-SUPPLIER and identify the candidate key(s).
c) Convert PART-SUPPLIER to a set of relations in at least third normal form.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

How does the concept of hegemony relate to culture?

Answered: 1 week ago