Quantcast
Channel: Support Portal
Viewing all articles
Browse latest Browse all 20315

Re : Report to show number of requests / incidnets

$
0
0
Hi,

Please use the below query.

SELECT qd.QUEUENAME AS "Group",
count(case when wo.IS_CATALOG_TEMPLATE='1' then 1 else null end ) "Service Request",
count(case when wo.IS_CATALOG_TEMPLATE='0' then 1 else null end ) "Incident Request"  FROM WorkOrder wo LEFT JOIN WorkOrder_Queue woq ON wo.WORKORDERID=woq.WORKORDERID LEFT JOIN QueueDefinition qd ON woq.QUEUEID=qd.QUEUEID WHERE wo.ISPARENT='1' group by qd.QUEUENAME

Viewing all articles
Browse latest Browse all 20315

Trending Articles