Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

I have to create an entity relationship diagram (ERD) for a bus reservation system...?

"Data items must include reservation number, route number, date, origin, destinations, departure time, arrival time, passenger name and seat number"

Correct me if I'm wrong, but the entities would still be Bus, Passenger and Reservation?

Reservation data items would be: reservation number, passenger name, seat number, date

Passenger data items would be: passenger name, seat number, destination, departure time

Bus data items would be: route number, origin, destination, departure time, arrival time

Update:

Thank you for that, delawaredreaming. I knew I was forgetting something.

4 Answers

Relevance
  • 8 years ago
    Favorite Answer

    You should add unique serial numbers to Reservation, Passenger and Bus Tables or classes if you will. This will ease stuff up. This is how i would design it

    Reservation data items : Res_SerialNo, passenger name, seat number, date, BusNo. (or Route No. if that's the identifier, though multiple buses could be dispatched on same route so better option is identifying each bus)

    Passenger data items: Psngr_No, Res_SerialNo., passenger name, (Reservation contains all the data next to this entry so cut the useless stuff)

    Bus data items: BusNo., RouteNo., origin, destination, departure time, arrival time, ResCount (To show how many seats have been reserved in the bus so far idk could be useful in management).

    Source(s): CS UG With good knowledge of OOAD and SE
  • 8 years ago

    A reservation would also include a bus and a passenger. That's how you tie them together. The reservation could have a foreign key to the passenger and another foreign key to the bus.

  • ?
    Lv 4
    5 years ago

    Comm 226? Nice.

  • Anonymous
    8 years ago

    Wow lady you are a genius for knowing all those fancy words!

Still have questions? Get your answers by asking now.