7.11 求总和的百分比 问题:求特定列中的值占总和的百分比。 select (sum(case when deptno =10 then sal end)/sum(sal))*100 as pctfrom emp;