You are really substracting two integer numbers not two "time" columns.
So you are doing 111033- 1100025 and display the result in the formnmat '99:99:99'
You are not converting integer to time. Format clause is not doing a comnversion is just a way of displaying the result.
Format '99:99:99' is not a time format what means is you want to display ":" between 2nd and 3rd digit and another one between 4th and 5th.
You can use format to intoduce any character you want , but does not mean any conversion
Format '99-99-99' will display 46-08-00
You should cast to time instead that cast to integer
You are really substracting two integer numbers not two "time" columns.
So you are doing 111033- 1100025 and display the result in the formnmat '99:99:99'
You are not converting integer to time. Format clause is not doing a comnversion is just a way of displaying the result.
Format '99:99:99' is not a time format what means is you want to display ":" between 2nd and 3rd digit and another one between 4th and 5th.
You can use format to intoduce any character you want , but does not mean any conversion
Format '99-99-99' will display 46-08-00
You should cast to time instead that cast to integer