Hi Chris
I agree with you but i think we can achieve it as i did for previous group for incidents.
If anyone can help to modify below expression(previous group) to previous Assignee for change table. WOuld be good.
(
SELECT SUBSTRING(SUBSTRING(act.action_desc,CHARINDEX('Transfer Group from',act.action_desc)+20,
(CHARINDEX('to ',act.action_desc)-CHARINDEX('Transfer Group from',act.action_desc)-20)),2,LEN(SUBSTRING(act.action_desc,CHARINDEX('Transfer Group from',act.action_desc)+20,
(CHARINDEX('to ',act.action_desc)-CHARINDEX('Transfer Group from',act.action_desc)-20)))-2)
as previous_group FROM dbo.act_log act
INNER JOIN
(
Select call_req_id as crid, MAX(last_mod_dt) as dt2 from dbo.act_log WHERE type = 'TR' and action_desc LIKE 'Transfer Group from%' group by call_req_id
) as act2
on act.call_req_id = act2.crid
and act.last_mod_dt = act2.dt2
WHERE act.type = 'TR' and act.action_desc LIKE 'Transfer Group from%' and act.call_req_id = REQUEST.PERSID )