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;
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;
Chapter11: Group Functions
Section: Chapter Questions
Problem 13MC
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
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 2 steps
Knowledge Booster
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
A Guide to SQL
Computer Science
ISBN:
9781111527273
Author:
Philip J. Pratt
Publisher:
Course Technology Ptr
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
A Guide to SQL
Computer Science
ISBN:
9781111527273
Author:
Philip J. Pratt
Publisher:
Course Technology Ptr
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L