首页 > 试题广场 >

Which of the following queries

[单选题]
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?
  • select job, sum(sal) from emp where sum(sal) > 2500 and comm is null;
  • select job, sum(sal) from emp where comm is null group by job having
    sum(sal) > 2500;
  • select job, sum(sal) from emp where sum(sal) > 2500 and comm is null
    group by job;
  • select job, sum(sal) from emp group by job having sum(sal) > 2500 and
    comm is not null;

这道题你会答吗?花几分钟告诉大家答案吧!