Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 219035

Re: Change Reason

$
0
0

My SQL skills are amateur at best and I suspect there's much better ways of doing this, but hopefully this helps:

 

SELECT TOP 1000 h.call_number, h.forward_time, o.friendly_name AS Officer_Name, Right(h.actions_desc,(CHARINDEX(']',REVERSE(h.actions_desc)))-1) AS Suspended_Reason_Text

FROM cl_problem_history h INNER JOIN

AR_PERSON o WITH (nolock) ON h.OFFICER_REF_FORWD = o.REF

WHERE  h.Actions_Desc like '%Call Suspended to %'

ORDER BY by h.call_number


You could refine this more to extract the "Suspended To" date/time out of the actions_desc string as well, if you wanted to find out how long the call was deferred until.


Viewing all articles
Browse latest Browse all 219035

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>