Relational Algebra Query
Relational Algebra Query
Question:
Consider the following relational database schema consisting of
the four relation schemas:
passenger ( pid, pname, pgender, pcity)
agency ( aid, aname, acity)
flight (fid, fdate, time, src, dest)
booking (pid, aid, fid, fdate)
Answer the following questions using relational algebra queries;
a) Get the complete details of all flights to New Delhi.
σ destination = “New Delhi” (flight)
-------------------------------------------------------------------------------------------
----------
c) Find only the flight numbers for passenger with pid 123
06/11/2020 (flight))
d) Find the passenger names for passengers who have
-------------------------------------------------------------------------------------------
----------
e) Find the passenger names for those who do not have
any bookings in any flights.
123 (booking)))
--------------------------------------------------------------------------------------------
---------