码迷,mamicode.com
首页 > 数据库 > 详细

calculate fraction by oracle

时间:2017-11-13 23:27:50      阅读:382      评论:0      收藏:0      [点我收藏+]

标签:solution   acl   check   out   cti   style   value   strong   from   

QUESTION:When you meet calculate fraction in oracle

SOLUTION:

1.Check out their values respectively. the use sign of division.

select  count(1) from emp where empno=7369;

select count(1) from emp ;

2.Fusion use  a command by dual table.

select  (select count(1) from emp where empno=7369)/(select count(1) from emp)  from dual;

 

 

calculate fraction by oracle

标签:solution   acl   check   out   cti   style   value   strong   from   

原文地址:http://www.cnblogs.com/yjhlsbnf/p/7828373.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!