Using figure 8.1, what SQL statement will show the biggest salary of the salesman if grouped based on their salary. Show only the biggest salary that are more than 6500. Arrange the salary from biggest to smallest. • select max(salary) from salesman group by max(salary) having max(salary)>6500 order by salary desc; • select max(salary) from salesman group by salary having max(salary)>6500 order by salary asc; O select max(salary) from salesman group by salary having max(salary)>6500 order by salary desc; • select min(salary) from salesman group by salary having max(salary)>6500 order by salary desc;

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
O SALESMAN
Calumn Deta Corstrants lGrants Istatstics Trggers IHadback Dependences IDetals Parstore Itndeves iso
*EX Sort. Fitar
COMMISSION SALARY
0.3 10000
0.25 25000
0.25 10000
0.2 15900
0.2
SALESMAN D
10 cTY
Paris
New York
(nul1)
London
(null)
(null)
(null)
(ul1מ)
(null)
(null)
(null)
New York
Paris
London
Paris
5003 Lauson Hense Manila
Rome
SNAME
150 Tucker
151 Bernstein
152 Hall
1530lsen
154 Cambrault
155 Tuvault
156 King
157 Sully
158 McEwen
159 Smith
160 Doran
5001 James Hoog
5002 Nail Knife
5700
0.15
5820
0.35 50000
0.35
8450
0.35
1596
10
0.3
4520
0.3 10000
0.15 10000
0.13 10000
0.11 10000
0.14 45896
0.12 10000
0.13 15625
11
12
13
5005 Pit Alex
5006 Mc Lyon
14
15
16
17
5007 Paul Adam
Salesman
OSALESMAN
olunns Data Constrants lGrants Istatstics ITriggers Flashback Dependencies Detala Parstons ndeses IsoL
*Z-Actons.
COLUMN NAME
I SALESMAN ID
2 SNAME
3 CITY
* COMMISSION
S SALARY
l DATA TPE
NUMBER (5,0)
VARCHAR2 (30 BYTE)
VARCHAR2 (15 BYTE)
NUMBER (5, 2)
NUMBER (11, 2)
O NULLABLE
No
Yes
Yes
Yes
Yes
Structure of the salesman table
Figure 8.1
Using figure 8.1, what SQL statement will show the biggest salary of the salesman if grouped based on their salary. Show only the biggest salary that are more than 6500. Arrange the salary from biggest to smallest.
• select max(salary) from salesman group by max(salary) having max(salary)>6500 order by salary desc;
• select max(salary) from salesman group by salary having max(salary)>6500 order by salary asc;
• select max(salary) from salesman group by salary having max(salary)>6500 order by salary desc;
• select min(salary) from salesman group by salary having max(salary)>6500 order by salary desc;
Transcribed Image Text:O SALESMAN Calumn Deta Corstrants lGrants Istatstics Trggers IHadback Dependences IDetals Parstore Itndeves iso *EX Sort. Fitar COMMISSION SALARY 0.3 10000 0.25 25000 0.25 10000 0.2 15900 0.2 SALESMAN D 10 cTY Paris New York (nul1) London (null) (null) (null) (ul1מ) (null) (null) (null) New York Paris London Paris 5003 Lauson Hense Manila Rome SNAME 150 Tucker 151 Bernstein 152 Hall 1530lsen 154 Cambrault 155 Tuvault 156 King 157 Sully 158 McEwen 159 Smith 160 Doran 5001 James Hoog 5002 Nail Knife 5700 0.15 5820 0.35 50000 0.35 8450 0.35 1596 10 0.3 4520 0.3 10000 0.15 10000 0.13 10000 0.11 10000 0.14 45896 0.12 10000 0.13 15625 11 12 13 5005 Pit Alex 5006 Mc Lyon 14 15 16 17 5007 Paul Adam Salesman OSALESMAN olunns Data Constrants lGrants Istatstics ITriggers Flashback Dependencies Detala Parstons ndeses IsoL *Z-Actons. COLUMN NAME I SALESMAN ID 2 SNAME 3 CITY * COMMISSION S SALARY l DATA TPE NUMBER (5,0) VARCHAR2 (30 BYTE) VARCHAR2 (15 BYTE) NUMBER (5, 2) NUMBER (11, 2) O NULLABLE No Yes Yes Yes Yes Structure of the salesman table Figure 8.1 Using figure 8.1, what SQL statement will show the biggest salary of the salesman if grouped based on their salary. Show only the biggest salary that are more than 6500. Arrange the salary from biggest to smallest. • select max(salary) from salesman group by max(salary) having max(salary)>6500 order by salary desc; • select max(salary) from salesman group by salary having max(salary)>6500 order by salary asc; • select max(salary) from salesman group by salary having max(salary)>6500 order by salary desc; • select min(salary) from salesman group by salary having max(salary)>6500 order by salary desc;
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Complex Datatypes
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