. Create an SQL statement to serve the described information needs (i) Retrieve the name and revenue of the driver with the highest revenue.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

A. Create an SQL statement to serve the described information needs

(i) Retrieve the name and revenue of the driver with the highest revenue. 

 

ID NAME
1 Steven Johnson
2 Clark Kent
3 Jenna Stevens
Peter Parker
4
LICENSE_PLATE_NR
A-AA8888
C-YM4444
Q-BB222
ID
2019
2020
2021
ID
995
996
997
998
999
DRIVER
1
2
1
NAME
Barbara Simons
James Jackson
Thomas White
TO
FROM
POI-10 POI-8
POI-30 POI-27
POI-12
POI-32
Amy Rose
Luke Jones
CITY
New York
Washington
c.kent@gmail.com
Washington j.stevens@gmail.com
Texas
p.parker@gmail.com
DRIVER
2
3
1
RIDE ID
2019
2019
2020
2019
2019
DRIVER
EMAIL
MOBILE
s.johnson@gmail.com 123456789
123456788
123456778
123456777
CAR
NR_OF_SEATS
4
8
4
RIDE
START_TIME
2020-08-04 16:11:27
2020-08-05 08:08:08
2020-08-06 12:12:12
PASSENGER
ADDRESS
New York
Washington
Alabama
Ohio
Florida
COLOR
Red
Green
Blue
RIDE_PASSENGER
END_TIME
EMAIL
b.simons@gmail.com
j.jackson@gmail.com
t.thomas@gmail.com
a.rose@gmail.com
l.jones@gmail.com
2020-08-04 16:55:27
2020-08-05 09:09:09
2020-08-06 13:13:13
DRIVING LICENSE
PASSENGER_ID
995
996
996
997
998
TYPE
Premium
Van
Compact
123
234
345
986
PRICE
10
18
6
MOBILE
162836279
305849384
105839048
103940394
17403830284
Transcribed Image Text:ID NAME 1 Steven Johnson 2 Clark Kent 3 Jenna Stevens Peter Parker 4 LICENSE_PLATE_NR A-AA8888 C-YM4444 Q-BB222 ID 2019 2020 2021 ID 995 996 997 998 999 DRIVER 1 2 1 NAME Barbara Simons James Jackson Thomas White TO FROM POI-10 POI-8 POI-30 POI-27 POI-12 POI-32 Amy Rose Luke Jones CITY New York Washington c.kent@gmail.com Washington j.stevens@gmail.com Texas p.parker@gmail.com DRIVER 2 3 1 RIDE ID 2019 2019 2020 2019 2019 DRIVER EMAIL MOBILE s.johnson@gmail.com 123456789 123456788 123456778 123456777 CAR NR_OF_SEATS 4 8 4 RIDE START_TIME 2020-08-04 16:11:27 2020-08-05 08:08:08 2020-08-06 12:12:12 PASSENGER ADDRESS New York Washington Alabama Ohio Florida COLOR Red Green Blue RIDE_PASSENGER END_TIME EMAIL b.simons@gmail.com j.jackson@gmail.com t.thomas@gmail.com a.rose@gmail.com l.jones@gmail.com 2020-08-04 16:55:27 2020-08-05 09:09:09 2020-08-06 13:13:13 DRIVING LICENSE PASSENGER_ID 995 996 996 997 998 TYPE Premium Van Compact 123 234 345 986 PRICE 10 18 6 MOBILE 162836279 305849384 105839048 103940394 17403830284
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
SQL Query
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education