Question: Question 3 ( 2 5 marks ) Consider the following relational database schema consisting of the four relation schemas: passenger ( pid, pname, pgender, pcity
Question
marks
Consider the following relational database schema consisting of the four relation schemas: passenger pid, pname, pgender, pcity and answer the following questions using relational algebra queries.
agency aid, aname, acity
flight fid fdate, time, src dest
booking pid aid, fid, fdate
Retrieve the complete details of all flights to Johannesburg.
marks
Retrieve the details about all flights from Cape Town to Johannesburg.
marks
Use a join to retrieve only the flight numbers for the passenger with pid for flights to Cape Town before
marks
Storey, VC and Goldstein, RC Knowledgebased approachea io datahase design. Ma Quarterly, pp
Coronel, C and Marris, s Database syatems dasign implamentation. managamant. Cengage Laarring
HDBPJulDecFAV
Use a join to retrieve the agency names for all agencies located in the same city as the passenger with pid
marks
Retrieve the details of all flights that are scheduled on and at : hours.
marks
Retrieve the details of all flights that are scheduled on either of the dates or or both at : hours.
marks
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
