I have the following query that returns a total seconds value (up to 86400 seconds (1 day))
I want to convert this to an HH:MM:SS value. Any help is appreciated.
(SELECT FIRST TSS.TotalDrivingTime
FROM HLG01_TR_TachographShiftSummary TSS
WHERE TSS.DriverID = TRD.DriverID
AND (CONVERT(date, TSS.PeriodStart)) = S.LoadDate)