Which of the following queries displays the sum of all employee salaries for those employees not making commission, for each job, including only those sums greater than 2500? a) select job, sum(Sal) from Emp where sum(Sal) > 2500 and comm is null; b) select job, sum(Sal) from Emp where comm is null group by job having sum(Sal) > 2500; c) select job, sum(Sal) from Emp where sum(Sal) > 2500 and comm is null group by job; d) select job, sum(Sal) from Emp group by job having sum(Sal) > 2500 and comm is not null;

Oracle 12c: SQL
3rd Edition
ISBN:9781305251038
Author:Joan Casteel
Publisher:Joan Casteel
Chapter11: Group Functions
Section: Chapter Questions
Problem 13MC
icon
Related questions
Question

Which of the following queries displays the sum of all employee salaries for those employees not making commission, for each job, including only those sums greater than 2500?

a) select job, sum(Sal) from Emp where sum(Sal) > 2500 and comm is null;

b) select job, sum(Sal) from Emp where comm is null group by job having sum(Sal) > 2500;

c) select job, sum(Sal) from Emp where sum(Sal) > 2500 and comm is null group by job;

d) select job, sum(Sal) from Emp group by job having sum(Sal) > 2500 and comm is not null;

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Multiple table
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.
Recommended textbooks for you
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
Publisher:
Cengage Learning
A Guide to SQL
A Guide to SQL
Computer Science
ISBN:
9781111527273
Author:
Philip J. Pratt
Publisher:
Course Technology Ptr
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L