SELECT SUM(CASE
WHEN answer_time IS NOT NULL
AND A.ent_split IS NOT NULL
AND call_type NOT LIKE 'PBX%'
THEN 1
ELSE 0
END) AS CH
,SUM(CASE
WHEN answer_time IS NOT NULL
AND A.ent_split IS NOT NULL
AND call_type NOT LIKE 'PBX%'
THEN 1
ELSE 0
END) + SUM(CASE
WHEN abandon_time IS NOT NULL
AND answer_time IS NULL
THEN 1
ELSE 0
END) AS CO
FROM reporting_call_matrix AS A WITH (NOLOCK)
WHERE A.CALENDAR_DATE >= '10/01/2015'
AND A.CALENDAR_DATE <= '4/30/2016'
AND A.SPLIT IN (
35
,55
,73
)
AND (A.ent_split IS NOT NULL)
作为回报,将所有3个拆分信息汇总到 CH 175282 CO 209452
我的问题是我需要数据来显示每个分裂IN
的个体答案 0 :(得分:1)
&#34;每个分组的数据&#34;听起来你需要使用imagestore
。你尝试过这样的事吗?
GROUP BY