请问下。select sum(TALKING_TIME) from R_SU_E_bak t where  
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') and 
and TARGET='ACD4955' and TALKING_TIME<'30'这句话是查TALKING_TIME的通话时间之和,我怎么查通话量是多少?

解决方案 »

  1.   

    一看就是ORACLE的 呵呵  建议去ORACLE问问
      

  2.   


    select sum(TALKING_TIME),COUNT(1) AS 总条数 from R_SU_E_bak t 
    where  
    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') and 
    and TARGET='ACD4955' and TALKING_TIME<'30'to_date 是Oracle的吧?
      

  3.   


    select sum(TALKING_TIME) 时长,count(1) 通话量 from R_SU_E_bak t where   
    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') and  
    and TARGET='ACD4955' and TALKING_TIME<'30'
      

  4.   


    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')