select count(a.数据) as aa,
count(distinct a.数据) as bb,
(count(a.数据) / count(distinct a.数据)) as cnum
from push_send a where
a.datetime>=to_date('2006-10-1','yyyy-mm-dd') and
a.datetime<to_date('2007-1-1','yyyy-mm-dd')语句意思是查寻10月到12月数据总量,不重复数据总量,再用总量除不重复的总量
这样方法速度太慢 请高手给与修改 谢谢
count(distinct a.数据) as bb,
(count(a.数据) / count(distinct a.数据)) as cnum
from push_send a where
a.datetime>=to_date('2006-10-1','yyyy-mm-dd') and
a.datetime<to_date('2007-1-1','yyyy-mm-dd')语句意思是查寻10月到12月数据总量,不重复数据总量,再用总量除不重复的总量
这样方法速度太慢 请高手给与修改 谢谢
解决方案 »
- 如何使用PLSQL Developer
- SQL?
- oracle创建触发器 Warning: Trigger created with compilation errors
- jsp中显示小数位数与PL/SQL中不一致的问题
- 物化视图复制,当主站点与物化视图站点断开连接的情况下主站点不可操作的问题~
- 如何统计记录里已经输入字段的数量
- 刚到Oracle版本.准备天天送分:顺便学习,第三个问题:SQL 存储过程转换成 Oracle 的问题:
- 【delphi中利用ClientDataSet和ADOQuery分别如何调用oracle中的存储过程-JCC0128-400分奉上】
- SQL SERVER 里表倒入到ORACLE
- ORACLE 树形
- 请教各位高手,下面的Oracle配置是否合理?
- 多表查询问题
(select count(a.数据) as aa,count(distinct a.数据) as bb
from push_send a where
a.datetime>=to_date('2006-10-1','yyyy-mm-dd') and
a.datetime<to_date('2007-1-1','yyyy-mm-dd')) cc;