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 name(s) of the Traveler(s) who have been on the greatest number of distinct trips. Note, distinct trips are based upon location pairs and not dates of travel.
(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
