Specify the following queries in relational algebra on the database schema given in Exercise:
a. Give the details (all attributes of trip relation) for trips that exceeded $2,000 in expenses.
b. Print the Ssns of salespeople who took trips to Honolulu.
c. Print the total trip expenses incurred by the salesperson with SSN = ‘234-56-7890’.
Exercise
Consider the following relations for a database that keeps track of business trips of salespersons in a sales office:
SALESPERSON(Ssn, Name, Start_year, Dept_no)
TRIP(Ssn, From_city, To_city, Departure_date, Return_date, Trip id)
EXPENSE(Trip id, Account#, Amount)
A trip can be charged to one or more accounts. Specify the foreign keys for this schema, stating any assumptions you make.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.