i have written a query to build the report and in the query i am using two tables called calldetail and ret and i am doing outer join on two tables using callid so that all the records for ret will be coming and the matching from calldetail but i am getting duplicate callids in the report and am grouping by agentid
handled = count(command.callid,command.agentid)
talktime = sum(command.agenttalktime,command.agentid)
i am do distinctcount on handled but talktime is getting wrong for duplicates the talktime is summing up twice
Please help me out!!
handled = count(command.callid,command.agentid)
talktime = sum(command.agenttalktime,command.agentid)
i am do distinctcount on handled but talktime is getting wrong for duplicates the talktime is summing up twice
Please help me out!!