SELECT Substring (START_HIST.step_name, 1, Length(START_HIST.step_name) - 5) AS
Step,
START_HIST.action_date
Start_date,
END_HIST.action_date
end_date,
( END_HIST.action_date - START_HIST.action_date ) AS
consumed_time
FROM deltatcc_local.aaa_is_logs START_HIST,
deltatcc_local.aaa_is_logs END_HIST
WHERE START_HIST.log_id + 1 = END_HIST.log_id
AND START_HIST.step_name LIKE '%Begin'
AND END_HIST.step_name LIKE '%End'
ORDER BY ( END_HIST.action_date - START_HIST.action_date ) DESC
|
Comments