0

OK this is probably very basic for the majority of you, but I'm struggling to do this assignment (Yep, it's homework). I've attempted this twice now and failed both times so far.

I need to create a relational data model in Boyce Codd Normal Form. Here are the details:

The Airport Authority in a small nation requires a database to store information about airlines, pilots and planes.

There is only one airport but several airlines use it. For each airline its identification code and full name is required together with the phone number of its local office. Several types of plane use the airport and for each type, the fuel capacity and maximum range is to be recorded.

Each pilot works for only one airline. For each pilot, their name, date of birth, address, the types of plane they can fly and their pilot‟s licence number is to be recorded. Further information is to be recorded to enable the production of a report listing the following details for each plane that uses the airport: Plane identification code, Plane type, Date of manufacture, Owning airline.

This is what I now have (After re-designing):

The table AIRLINES should include:

ID,
Name,
Phone #

The table PLANES should include:

ID,
Date of Manufacture
Airline ID
FOREIGN KEY (Airline ID) references table AIRLINES
Plane Type ID 
FOREIGN KEY (Plane Type ID) references table PLANE TYPE

The table PLANE TYPE should include:

ID,
Maximum range,
Fuel capacity,

The table PILOTS should include:

ID,
Name,
Date of Birth,
Address,
License #,
Airline ID,
FOREIGN KEY (Airline ID) references table AIRLINES
PilotPlaneID
FOREIGN KEY (PilotPlaneID) references table PILOTPLANETYPE

The table PILOTPLANETYPE should include:

   PilotID
   PlaneTypeID
   FOREIGN KEY (PilotID) references table PILOT
   FOREIGN KEY (PlaneTypeID) references table PLANE TYPE

According to my marker, I had have left a many to many relationship between Pilot and Plane Type. Can someone with some database design knowledge please give me helping hand?

(EDIT: Tables now updated with PILOTPLANETYPE, which I think should satisfy the requirements)?

4

1 回答 1

1

您的设计为每位飞行员设计了一种飞机类型。

描述包含“他们可以驾驶的飞机类型”。这个复数表明每个飞行员可能驾驶许多飞机。

由于这是家庭作业,我将让您弄清楚如何将这些信息放入您的设计中。

于 2012-08-22T02:16:01.323 回答