日期:2014-05-17 浏览次数:20939 次
select count(1) from R_SU_E_bak t where TALKING_TIME<'30'
------解决方案--------------------
对的。
count(1)和count(*)一样,是所有条数。
select sum(TALKING_TIME) 总通话时间,COUNT(1) 总通话量 from R_SU_E_bak
where TARGET='ACD4955' and TALKING_TIME<'30' and
start_time>to_date('2011-11-01 00:00:00','yyyy-MM-dd hh24:mi:ss') and
start_time<to_date('2011-11-30 23:59:59','yyyy-MM-dd hh24:mi:ss')