22,209
社区成员
发帖
与我相关
我的任务
分享
select count(*) as C_Count, u.fullname ,c.seat_jobnumber,DATEDIFF(ss,call_time,offhook_time) as diff_time from tb_call as c left join tb_user as u on u.username = c.seat_jobnumber where 1=1 and c.call_time >='2012-02-09' and c.call_time <'2012-02-09 23:59:59' group by c.seat_jobnumber,u.fullname,call_time
select count(*) as C_Count, u.fullname ,c.seat_jobnumber,DATEDIFF(ss,call_time,offhook_time) as diff_time from tb_call as c left join tb_user as u on u.username = c.seat_jobnumber where 1=1 and c.call_time >='2012-02-09' and c.call_time <'2012-02-09 23:59:59'