l10n

问题:求特定列中的值占总和的百分比。

select (sum(
case when deptno =10 then sal end)/sum(sal)
)*100 as pct
from emp;

分类:

技术点:

相关文章:

  • 2021-11-26
  • 2021-12-24
  • 2022-01-31
  • 2021-11-09
  • 2021-04-30
  • 2021-12-23
猜你喜欢
  • 2021-11-14
  • 2021-12-28
  • 2021-10-08
  • 2021-12-15
  • 2021-11-15
  • 2021-11-16
相关资源
相似解决方案