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 :
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.
Post your comment
Please log in or register to post a comment.
Examination Categories
- SSC Exams
- Banking Exams
- Teaching Exams
- Civil Services Exams
- Railways Exams
- Engineering Recruitment Exams
- Defence Exams
- State Government Exams
- Police Exams
- Insurance Exams
- Nursing Exams
- Other Government Exams
- NRA CET
- PG Entrance Exams
- Campus Placement
- MBA Entrance Exams
- CUET and UG Entrance
- Judiciary Exams
- Regulatory Body Exams
- Software Development