Suppose we have the following schema for a large car rental company. Drivers (did: integer, name: string, rating: intege

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Suppose we have the following schema for a large car rental company. Drivers (did: integer, name: string, rating: intege

Post by answerhappygod »

Suppose We Have The Following Schema For A Large Car Rental Company Drivers Did Integer Name String Rating Intege 1
Suppose We Have The Following Schema For A Large Car Rental Company Drivers Did Integer Name String Rating Intege 1 (46.42 KiB) Viewed 24 times
i have posted this question before ,
please solve all
Suppose we have the following schema for a large car rental company. Drivers (did: integer, name: string, rating: integer, age: real) Branch (bid:integer, branch name:string, phone:string) Cars (cid: integer, model: string, crear: integer, color:string, bid: integer) Police Ticket(ticket id, did:int, date:date amount:real) Rent (did: integer, cid: integer, day: date, payment type:string) Question3 60 marks) write the SQL statements. f) Find the names of drivers who have rented a 'red' and a brown car. g) Find the names of drivers who have not rented a 'blue' car. (Use nested queries) h) Find the names of drivers with the highest rating. i) Find the name and age of the oldest drivers. j) Find the names of drivers who are older than the oldest driver that has rating seven. k) What is the average age for each rating? 1) Find the age of the youngest driver who is eligible to vote (ie, is at least 18 years old) for each rating level with at least two such driver.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply