Question: Booking(agent: String, traveler_ssn: integer, trip_id: integer) FormedBy(id: integer, location: String, start_date: Date, end_date: Date) GoesOn(ssn: integer, id: integer) Leg(location: String, start_date: Date, end_date: Date) Owns(ssn:
Booking(agent: String, traveler_ssn: integer, trip_id: integer)
FormedBy(id: integer, location: String, start_date: Date, end_date: Date)
GoesOn(ssn: integer, id: integer) Leg(location: String, start_date: Date, end_date: Date)
Owns(ssn: integer, passport_number: integer, country: String)
Passport(number: integer, country: String, expiration_date: Date, owner: String)
TravelAgent(name: String, years_experience: integer, phone: String) Traveller(name: String, ssn: integer, dob: Date)
Trip(id: integer, start_location: String, end_location: String, start_date: Date, end_date: Date)
Find the name(s) and phone(s) of the agent(s) who have booked the most trips.
(a) Using relational algebra
(b) Create the expression tree of your relational algebra
(c) Using SQL
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
