johnnyasterisk
IS-IT--Management
UPDATE intellicom.agent_performance ap, pbxware.ql_cache qlc
SET ap.inbcalls = count(qlc.event = 'CONNECT')
WHERE ap.agentid = qlc.type;
the above query give me the following error "Invalid use of group function". However I am not wanting to group by... I am simple wanting to select values in one table and update another. However the value i need to select in the table requires a 'COUNT' to calculate them.
Any help would be appreciated.
Thanks
SET ap.inbcalls = count(qlc.event = 'CONNECT')
WHERE ap.agentid = qlc.type;
the above query give me the following error "Invalid use of group function". However I am not wanting to group by... I am simple wanting to select values in one table and update another. However the value i need to select in the table requires a 'COUNT' to calculate them.
Any help would be appreciated.
Thanks