Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Quiestion 3 Customer. Emplayce contact = projedt Page 6 of 1 7 Consider the following three relations used in a moving truck rental database. (
Quiestion
Customer. Emplayce
contact projedt
Page of
Consider the following three relations used in a moving truck rental database.
marks
Marge
RENTALAGENT name age, salary
CUSTOMER name pickupcity, dropoffcity, trucksize
CONTRACT number custname, agentname, amountpaid, trucknumber
Write SQL statements to answers the following questions.
a Display the name of the oldest rental agent.
b Display the names and ages of the agents who have rented trucks for customer "Chris
Auto" in descending order of age use a subquery
c Display the ages of agents who have rented trucks for customer "Chris Auto" from
"Edmonton" do not use a subqueryempopels
d Compute the number of different customers who have a rental contract.
e Display the names and salaries of all rental agents who did not rent trucks for customer
"Chris Auto", in ascending order of salary.
f Compute the number of contracts for each agent. Consider only those contracts where the
amount paid exceeds $
g Display the names and salaries of all agents who have at least rental contracts for truck
size CU
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started