Quantcast
Channel: Teradata Forums - Database
Viewing all articles
Browse latest Browse all 14773

Whom can help me explain the ‘46.06:18:08’ time. - response (1) by gerardo

$
0
0

 
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
 


Viewing all articles
Browse latest Browse all 14773

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>