← Database Management System 🟑 Medium πŸ“‹ Sanfoundry

Which of the following queries displays the sum of all employee salaries for those employees not mak…

Question #1331 of 749+ in Database Management System

πŸ“ Question #1331

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?

⌨️ Press A B C D to select
βœ“

All Options & Correct Answer

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; Correct
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;

πŸ“‹ Question Details

πŸ“š
Subject
Database Management System
🎯
Difficulty
Medium
πŸ“…
Year
β€”
πŸ“‹
Source
Sanfoundry

πŸ“€ Share This MCQ

πŸ“š Want More?

Practice Database Management System MCQs

749+ questions with detailed answers