top of page

ER Diagram Example: Flight Database

The flight database stores details about an airline’s fleet, flights, and seat bookings. Again, it’s a hugely simplified version of what a real airline would use, but the principles are the same.


Consider the following requirements list:

  • The airline has one or more airplanes.

  • An airplane has a model number, a unique registration number, and the capacity to take one or more passengers.

  • An airplane flight has a unique flight number, a departure airport, a destination airport, a departure date and time, and an arrival date and time.

  • Each flight is carried out by a single airplane.

  • A passenger has given names, a surname, and a unique email address.

  • A passenger can book a seat on a flight.


The ER diagram derived from our requirements is shown in Figure.

ree
  • An Airplane is uniquely identified by its RegistrationNumber, so we use this as the primary key.

  • A Flight is uniquely identified by its FlightNumber, so we use the flight number as the primary key. The departure and destination airports are captured in the From and To attributes, and we have separate attributes for the departure and arrival date and time.

  • Because no two passengers will share an email address, we can use the EmailAddress as the primary key for the Passenger entity.

  • An airplane can be involved in any number of flights, while each flight uses exactly one airplane, so the Flies relationship between the Airplane and Flight relationships has cardinality 1:N; because a flight cannot exist without an airplane, the Flight entity participates totally in this relationship.

  • A passenger can book any number of flights, while a flight can be booked by any number of passengers. As discussed earlier in Intermediate Entities,” we could specify an M:N Books relationship between the Passenger and Flight relationship, but considering the issue more carefully shows that there is a hidden entity here: the booking itself. We capture this by creating the intermediate entity Booking and 1:N relationships between it and the Passenger and Flight entities. Identifying such entities allows us to get a better picture of the requirements. Note that even if we didn’t notice this hidden entity, it would come out as part of the ER-to-tables mapping process we’ll describe next in Using the Entity Relationship Model.”



Source: oreilly


The Tech Platform

9 Comments


Guest
Oct 14

A very cordial welcome to my profile! I am Sabrina Khan and I am one of the Ramp Model escorts in Nashik. I opted for the profession of independent escorting with a willingness and complete desire for the exploration and experimentation of modern erotica. Personally, I am of the view that real purpose of life is just to get and derive maximum pleasure out of life for which erotica is the main medium. The profession of ramp modeling gives me name, fame and money but the field of escorting gives me the real purpose of life. The profiles details that I am narrating you here will enlighten you more about my bodily assets and the quality of my sensual services.…


Like

Guest
Sep 16

Find Escorts in Ghaziabad on Curbess. Find call girls and Sexy escorts service for fun Dating entertainment.

VIP ghaziabad Escorts

VIP Pune Escorts

VIP Chennai Escorts

VIP Surat Escorts

VIP Nashik Escorts

Like

Guest
Aug 20

Find Escorts in Greater Noida on Curbess. Find call girls and Sexy escorts service for fun Dating entertainment.

Hot escorts in Greater Noida

Hot escorts in Meerut

Hot escorts in junagadh

Hot escorts in nadiad

Hot escorts in Rajkot

Like

Guest
Jul 23

Understanding ER diagrams for flight databases is crucial for managing complex airline information efficiently. Clear data models help ensure smooth booking and scheduling processes. For travelers wanting to experience these airlines in style, finding affordable premium tickets is key—cheap business first class flights at offer great options to upgrade your journey without breaking the bank.

Edited
Like

curbess free
Jun 23

If you are looking for CALL GIRLS in Nashik and Escorts Service for fun. Browse nashik Escort Service on Curbess.com is an online Incall and Outcall services.


Female Nashik Escorts  Female Independent Delhi Escorts

Independent Female Goa Escorts

Independent Female Junagadh Escorts

Female Greater Noida Escorts


Like
bottom of page