Hi ,
I would like to convert the datadiff to hours,minutes and second and total up batch time and build time in different column . Can expert show how this can be done in below query?
I would like to convert the datadiff to hours,minutes and second and total up batch time and build time in different column . Can expert show how this can be done in below query?
Code:
SELECT file_name, org_rcvd_dts,
DateDiff(hh, bld_start_dts, bld_end_dts) AS Batch_time,
DateDiff(hh, cnv_start_dts, cnv_end_dts) AS Build_time
FROM build_log(nolock)
WHERE status <> 'DoNotRerun'
AND dist_id = 2
AND build_type = 'Full'
ORDER BY cnv_start_dts
Comment