Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

DBMS LAB-10 Date: 27th MAR, 2019

Q:
USER (user_id, First_name, Last_name, Gender, Age, Mobile_no)
PASSENGER (p_id, pnr_no, age, gender, user_id, seat_no, name, ticket_id)
TRAIN (train_no, train_name, expected_arrival_time, arrival_time, departure_time,
seat_availability, p_id, reservation_status, berth)
TRAIN_STATUS (train_no, p_id, status)
STATION (s_no, name, train_no)
TICKET (t_id, user_id, no_of_passengers, train_no)

1. Find the user who booked tickets on AC berth in Samleswari Express.


2. Check weather seat number 32 is available or not in Samleswari Express.
3. Find atleast four people who is under RAC.
4. Find atleast two passengers whose train has been cancelled.
5. Find atmost ttwo trains which have maximum halting time in Rourkela Station.
6. create a table for CANCEL Relation between user and ticket.
7. Display the details of the users who cancelled tickets for train_no = 12345.
8. Create the relation stops_at, starts between train and station
9. Display the immediate train from Rourkela station and Ranchi.
10. Find the train/trains which arrive 10 minutes late to Rourkela Station.

You might also like