Scenic Routes operates a bus company that specializes in traveling on secondary roads, rather than Interstate highways. Their slogan is: “It Takes a Little Longer, But It’s Scenic.” The firm needs to update its passenger reservation system.
Background
Data items must include reservation number, Route Number, Date, Origin, Destinations, Departure Time, Arrival Time, Passenger Name, and Seat Number. For example, Route 97 leaves Monroe, VA, daily at 8:00 a.m. and arrives in Spencer, VA, 100 miles away, at 11:00 a.m. Scenic wants to use an alphabetic reservation code, similar to the codes that airlines use.
Tasks
Identify the entities and their relationships. Then create an ERD for the reservations system.
A sample ERD follows. Note that the RESERVATION CODE DATA entity might store data about the Reservation Code, Date, Route Number, Passenger Name, and Seat Number. The ROUTE DATA entity might store data about the Route Number, Origin, Destination, Departure Time, and Arrival Time.
Create 3NF table designs for the system.
ROUTE DATA (ROUTE NUMBER, ORIGIN, DESTINATION, DEPART TIME, ARRIVE TIME)
RESERVATION DATA (RESERVATION CODE, DATE, ROUTE NUMBER, FLIGHT NUMBER, LIGHT DATE, PASSENGER NAME, and SEAT NUMBER)
PASSENGER NAME (PASSENGER NUMBER, PASSENGER LAST NAME, PASSENGER FIRST NAME)
For each of the entities identified, design tables and identify the possible candidate keys, the primary key, a probable foreign key, and potential secondary keys. Use sample data to populate the fields for three records.
ROUTE DATA (ROUTE NUMBER, ORIGIN, DESTINATION, DEPART TIME, ARRIVE TIME)
ROUTE NUMBER |
ORIGIN |
DESTINATION |
DEPART TIME |
ARRIVE TIME |
FREQUENCY |
368 |
AUG |
NAS |
0923 |
1017 |
TTH |
890 |
HPN |
AUG |
1410 |
1555 |
DLY |
900 |
AUG |
AUG |
1535 |
1620 |
TTH |
RESERVATION DATA (RESERVATION CODE, DATE, ROUTE NUMBER, FLIGHT NUMBER, FLIGHT DATE, PASSENGER NAME, and SEAT NUMBER)
Using this design, sample data for three RESERVATION DATA records might look like this:
RESERVATION CODE |
DATE |
ROUTE NUMBER |
PASSENGER NUMBER |
SEAT NUMBER |
AXQTBC |
7/6/14 |
368 |
ALER1098 |
2A |
SUVZAB |
6/1/14 |
890 |
BROT4657 |
11A |
RHJBVS |
6/1/14 |
890 |
BROT6182 |
11B |
PASSENGER NAME (PASSENGER NUMBER, PASSENGER LAST NAME, PASSENGER FIRST NAME)
PASSENGER NUMBER |
PASSENGER LAST NAME |
PASSENGER FIRST NAME |
ALER1098 |
Alerion |
Nathan |
BROT4657 |
Brothers |
Barbara |
BROT6182 |
Brothers |
Sam |
Scenic Routes operates a bus company that specializes in traveling on secondary roads, rather than Interstate...
MAC 110 Chapter 9 Practice Scenic Routes Scenic Routes operates a bus company that specializes in travelling on secondary roads, rather than Interstate highways. Their slogan is: "It Takes a Little Longer, But It's Scenic." The firm needs to update its passenger reservation system. Background Data items must include reservation number, Route Number, Date, Origin, Destinations, Departure Time, Arrival Time, Passenger Name, and Seat Number. For example, leaves Monroe, VA, daily at 8:00 a.m. and arrives in Spencer, VA, 100...