Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle 10g SQL

Authors: Joan Casteel, Lannes Morris Murphy

1st Edition

141883629X, 9781418836290

More Books

Students also viewed these Databases questions

Question

Define Scientific Management

Answered: 1 week ago

Question

Explain budgetary Control

Answered: 1 week ago

Question

Solve the integral:

Answered: 1 week ago

Question

What is meant by Non-programmed decision?

Answered: 1 week ago

Question

What guidance are you giving managers on pre- and post- briefing?

Answered: 1 week ago

Question

Current skills levels and starting point of the targeted group

Answered: 1 week ago