30)Consider the following Entities and Relationships [30 Marks]
Train (train_no, train_name, depart_time, arrival_time,source_stn, dest_stn)
Passenger (p_id,p_name,address,age, gender)
Relation between Train and Passenger is Many to Many with
seat_no, amount and date as descriptive attribute.
Constraint: Primary key, seat_no should not be null.
Create a Database in 3NF & write queries for following.
• Display passenger details having age>50
• Display total amount collected for “Kokan Express” on 5th January 2013.
• Find total number of passenger of “Pune to Mumbai” route.
• Cancel all the trains of 21st January 2013.
• Calculate total number of male passenger in “Shatabdi Express”.
/