请帮我创建一个查询,以获取每个流程(模式>流程)处理的总秒数
Sample Table [不知道如何粘贴为ASCII表]
Required Format(但我需要指定Start_Date的详细信息)
答案 0 :(得分:0)
试试这个 -
SELECT CBD.ModeofCommunication
,CBD.Process
,Count(CBD.Process) AS [Processed Count]
,Sum(DateDiff("s",CBD.Start_Time,CBD.End_Time)) AS Time_Taken
FROM Current_Bot_Details CBD
WHERE Date = '10/04/2017'
GROUP BY CBD.ModeofCommunication
,CBD.Process;