I came into a scenario where table containing the time values in integer datatype and I need to convert them to TIME
datatype to use DATEDIFF()
function.
Ex: if column value is 449, then it's 04:49:00:00; if the column contains 25, then 02:05:00:00.
If anyone has a user-defined procedure or code that should be more helpful to use them in Select
statement as I need to pass this value to DATEDIFF()
.