摘要:计算某字段值的百分比
简短不说,直接上图,
代码如下:
select ratio_to_report(deptno) over()*100.00 as ratio,deptno,dname,loc from sys.dept order by ratio;
执行结果:
详细功能描述,请见官方文档:http://docs.oracle.com/cd/B19306_01/server.102/b14200/functions124.htm
摘要:计算某字段值的百分比
简短不说,直接上图,
代码如下:
select ratio_to_report(deptno) over()*100.00 as ratio,deptno,dname,loc from sys.dept order by ratio;
执行结果:
详细功能描述,请见官方文档:http://docs.oracle.com/cd/B19306_01/server.102/b14200/functions124.htm