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;
这道题你会答吗?花几分钟告诉大家答案吧!