我正在尝试运行此MySQL查询:
SELECT SUM(arg2) as talktime FROM voipnow.ast_queue_log
WHERE queuename = '0536*401'
AND DATE(time) = '2014-03-17'
AND (event = 'COMPLETECALLER' AND event = 'COMPLETEAGENT')
ORDER BY time DESC
但没有返回结果,我也尝试过:
SELECT SUM(arg2) as talktime FROM voipnow.ast_queue_log
WHERE queuename = '0536*401'
AND DATE(time) = '2014-03-17'
AND event = 'COMPLETECALLER' AND event = 'COMPLETEAGENT')
ORDER BY time DESC
但仍然没有结果
答案 0 :(得分:1)
我想知道一个列如何同时拥有两个不同的字符串,也许您打算使用OR
而不是AND
来拥有COMPLETECALLER
和{的所有记录{1}}
COMPLETEAGENT