The document contains SQL commands to:
1) Create two database tables - Train and Passenger with attributes like train number, name, source, destination for trains and PNR number, name, gender, address for passengers.
2) Write three SQL queries - one to select train names based on source, destination and matching passenger journey date, second to select passenger names with a given status and date and third to select all columns from Passenger table for a given journey date.
The document contains SQL commands to:
1) Create two database tables - Train and Passenger with attributes like train number, name, source, destination for trains and PNR number, name, gender, address for passengers.
2) Write three SQL queries - one to select train names based on source, destination and matching passenger journey date, second to select passenger names with a given status and date and third to select all columns from Passenger table for a given journey date.
The document contains SQL commands to:
1) Create two database tables - Train and Passenger with attributes like train number, name, source, destination for trains and PNR number, name, gender, address for passengers.
2) Write three SQL queries - one to select train names based on source, destination and matching passenger journey date, second to select passenger names with a given status and date and third to select all columns from Passenger table for a given journey date.