Machine-translated by Google. Questions are authored in English.
Top

Discussion

In a railway reservation system, the entities are-date, train no, place of departure, destination, type of train, type of seats, seats available.

The primary key will be :

  • A.train no. + date
  • B.train no.+ destination
  • C.train no.+ place of departure
  • D.train no.

Answer: A

The primary key is train no. + date.

A primary key must identify each reservation record uniquely. A given train number runs every day (or on several days), so the train number alone repeats; the combination of train number and date picks out one particular journey, on which seat availability, seat type and the rest depend.

Train number plus destination, or plus place of departure, still repeats from day to day, since the same train serves the same stations daily, and the train number alone is not unique either.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.