I found a solution to this issue and I just want to follow up with the initial post so that it is documented. First off, thank you to Subra and Greg, I did not use your exact solution or query but it pointed me in the right direction to come up with a suitable solution for our environment. By running the following query, I was able to gather the required fields from the "execution_jobs" table and the "offline_execution_jobs table" and then diff the start time and end time to come up with a duration field.
SELECT 'offline_execution_jobs' as names,
process_name as 'Process Name'
,start_time as 'Start Time'
,end_time as 'End Time'
,DATEDIFF (ss, start_time, end_time) Seconds
,RIGHT('0' + CAST(DATEDIFF (ss, start_time, end_time) / 3600 AS VARCHAR),2) + ':' +
RIGHT('0' + CAST((DATEDIFF (ss, start_time, end_time) / 60) % 60 AS VARCHAR),2) + ':' +
RIGHT('0' + CAST(DATEDIFF (ss, start_time, end_time) % 60 AS VARCHAR),2) Duration
FROM [PPReleaseDB].[dbo].[offline_execution_jobs] (NOLOCK)
WHERE minor= @minor-- Finished'
AND release_name= @releasename
UNION ALL
SELECT 'execution_jobs' as names,
process_name as 'Process Name'
,start_time as 'Start Time'
,end_time as 'End Time'
,DATEDIFF (ss, start_time, end_time) Seconds
,RIGHT('0' + CAST(DATEDIFF (ss, start_time, end_time) / 3600 AS VARCHAR),2) + ':' +
RIGHT('0' + CAST((DATEDIFF (ss, start_time, end_time) / 60) % 60 AS VARCHAR),2) + ':' +
RIGHT('0' + CAST(DATEDIFF (ss, start_time, end_time) % 60 AS VARCHAR),2) Duration
FROM [PPReleaseDB].[dbo].[execution_jobs] (NOLOCK)
WHERE minor = @minor
AND release_name = @releasename
ORDER BY start_time ASC;
For version 1.0 of our plan, this will suffice. We are currently utilizing the "Execute SQL Query using Microsoft SQL Server" action to run this query and output the results to a CSV file. Following this is a simple action to send an email with this attachment. For now, this provides the base functionality to report on the elements that we need. For version 2.0, we plan on outputting the results to a result set and then parsing the results set for the parameters that we need to inject them into an HTML email. This will be a much more aesthetic and elegant solution. I will try to update this post once we actually do this to include the solution for that as well. Thanks again everyone.