Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Normalize the following two relations to BCNF. Please use the assumptions listed for the questions to normalize. Each question is 15 points. It is important

Normalize the following two relations to BCNF. Please use the assumptions listed for the questions to normalize.

Each question is 15 points. It is important to show all steps for normalization to BCNF we discussed in class to get full credit.

  1. TEXTBOOK (ISBN, Title, Edition, Year, PublisherID, PublisherName, PublisherAddress, AuthorID, AuthorName, AuthorAddress, AuthorEmail)

Assumptions: Every textbook has a unique ISBN. A textbook is written by one author. A textbook has only one publisher. An author can write many books. A publisher can publish many books. The publisher ID is unique for every publisher. The AuthorID is unique for every author)

Step 1:

ISBN > ( Title, Edition, Year, PublisherID, PublisherName, PublisherAddress, AuthorID, AuthorName, AuthorAddress, AuthorEmail)

Step2: Identify functional dependencies

  1. ISBN-> Title, Edition, Year, PublisherID, PublisherName, PublisherAddress, AuthorID, AuthorName, AuthorAddress, AuthorEmail
  2. PublisherID-> PublisherName, PublisherAddress
  3. Author-> AuthorName, AuthorAddress, AuthorEmail

Step3: Is there a determinant that is not a candidate key.

Yes, PublisherID, AuthorID               

Final Normalizied Relations

TEXTBOOK ( PublisherID , AuthorID , ISBN, Title, Edition, Year)
PUBLISHER (PublisherID, PublisherName, PublisherAddress, AuthorID )
AUTHOR (AuthorID, AuthorName, AuthorAddress, AuthorEmail)

  1. APARTMENT (BuildingNumber, ApartmentNumber, NumberOfBedrooms, Rent, BuildingName, BuildingAddress, BuildingManager)

Assumptions: The building number is unique for every building. A building can have many apartments. The same apartment number can repeat in two building, however each building will not have apartments with the same apartment number. The Rent, NumberofBedrooms is associated with an apartment. Every building has a specific building manager.

Step1: Identify all candidate keys

  1. BuildingNumber and ApartmentNumber

Step2: Identify functional dependencies

  1. BuildingNumber, ApartmentNumber
  2. BuildingNumber -> (BuildingName, BuildingAddress, BuildingManager)
  3. ApartmentNumber -> (NumberOfBedrooms, Rent)

Step3: Is there a determinant that is not a canindate key.

Yes. BuildingNumber, and ApartmentNumber.

Final Normalizied Relations

BUILDING (BuildingNumber, BuildingName, BuildingAddress, BuildingManager, ApartmentNumber )
APARTMENT (ApartmentNumber, NumberOfBedrooms, Rent)

Step by Step Solution

3.46 Rating (149 Votes )

There are 3 Steps involved in it

Step: 1

SolutionBCNF Boyce Codd Normal Form A table is in BCNF if it is in 3NF and for every functional depe... 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

Essentials of Database Management

Authors: Jeffrey A. Hoffer, Heikki Topi, Ramesh Venkataraman

1st edition

133405680, 9780133547702 , 978-0133405682

More Books

Students also viewed these Programming questions