Transform the following entities into 3rd Normal Form (3NF) entities. Draw the o
ID: 3862768 • Letter: T
Question
Transform the following entities into 3rd Normal Form (3NF) entities. Draw the original and final data models, and state any reasonable assumptions. AIRCRAFT, which is described by the following: AIRCRAFT ID NUMBER (primary key), AIRCRAFT CODE, AIRCRAFT DESCRIPTION, and NUMBER OF SEATS. FLIGHT, which is described by the following: LIGHT NUMBER (primary key), DEPARTURE CITY, one or more ARRIVAL CITY(S), MEAL CODE, and one or more FLIGHT DATES and CURRENT SEAT PRICES. PASSENGER, which is described by the following: PASSENGER NUMBER (primary key), PASSENGER NAME, FREQUENT FLYER NUMBER, one or more of the following: FLIGHT NUMBER, SEAT NUMBER, QUOTED SEAT PRICE, AMOUNT PAID, and BALANCE DUE.Explanation / Answer
Table in 3NF are in bold
AIRCRAFT(IDNumber,Code,Description,NumOfSeats)
IDNumber and Code are both determinants so make composite primary key (IDNumber,Code)
AIRCRAFT(IDNumber,Code,Description,NumOfSeats)
FLIGHT(FlightNumber,DepartureCity,ArrivalCity,MealCode,FlightDates,CurrentSeatPrices)
ArrivalCity is multivalue attribute so make another table for it.
ARRIVAL(FlightNumber,ArrivalCity)
FlightDate is multivalue attribute so make another table for it.
DATE(FlightNumber,FlightDate)
CurrentSeatPrice is multivalue attribute so make another table for it.
PRICE(FlightNUmber,CurrentSeatPrice)
So we are left with following attributes in FLIGHT table
FLIGHT(FlightNumber,DepartureCity,MealCode)
PASSENGER(PassgengerNumber,FrequentFlyerNumber,FlightNumber,SeatNumber,QuotedSeatPrice,AmounPaid,BalanceDue)
Multivalue attributes should be represented by separate tables -- FlightNumber, SeatNumber, QuotedSeatPrice, AmountPaid, BalanceDue
PASSENGER_FLIGHT(PassgengerNumber,FlightNumber)
PASSENGER_SEAT(PassgengerNumber,SeatNumber)
PASSENGER_QUOTED_PRICE(PassgengerNumber,QuotedSeatPrice)
PASSENGER_AMOUNTPAID(PassgengerNumber,AmountPaid)
PASSENGER_BALANCE_DUE(PassgengerNumber,BalanceDue)
So we are left with following attributes in PASSENGER table
PASSENGER(PassgengerNumber,FrequentFlyerNumber)
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.