Question
Consider the Ship Management System with the following relation. Passenger (PID, Passenger_Name, Sex, Age, Ratings,Address) Ship (SID, Ship_Name, Reg_No) Booking (BID, SID, Cost, Days) Write
Consider the Ship Management System with the following relation. Passenger (PID, Passenger_Name, Sex, Age, Ratings,Address) Ship (SID, Ship_Name, Reg_No) Booking (BID, SID, Cost, Days) Write the following queries in relational algebra: i. Create the table with appropriate constraints. ii. Display the passenger names, ship names and the BID that were booked by Alice, No.26, New St, Noida, Delhi. iii. Display the SID & BID of the male passengers who booked on 22-09-2015 and the days are greater than 5. iv. Display the Reg_No of the Hovercraft booked by list of female passengers and their age is less than 25. v. Display the passenger names, ship names and the BID that were booked by Alice, No.26, New St, Noida, Delhi.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started