Hi - thanks for the welcome. The existing SQL is as below if this helps? It's written with Business Objects, the problem is that I don't know how to pick out the lastest activity log as they are each returned on individual rows?
Thanks for the help!
Code:
SELECT
TKT_TT_MAIN.TT_ID,
STK_BOB_DATE(TKT_TT_MAIN.Ora_Fault_Start_Time),
STK_BOB_DATE(TKT_TT_MAIN.Ora_Fault_Resolvee_Time),
TKT_TT_MAIN.Impact,
TKT_TT_MAIN.Priority,
TKT_TT_MAIN.Manager_Group,
TKT_TT_MAIN.Assignee_Group,
TKT_TT_MAIN.CTI_Category,
TKT_TT_MAIN.CTI_Type,
STK_BOB_DATE(TKT_FLW_WORKLOG.Create_Date),
TKT_TT_MAIN.CTI_Item,
TKT_FLW_WORKLOG.Truncated_Work_Log
FROM
TKT_TT_MAIN,
TKT_FLW_WORKLOG
WHERE
( TKT_FLW_WORKLOG.TT_ID(+)=TKT_TT_MAIN.TT_ID )
AND (
TKT_TT_MAIN.TT_ID = @variable('Enter STK ID')
)