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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!