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 (2) by M.Saeed Khurram

$
0
0

Hi gerado,
I agree with you to some extent, But convertin this to time is not solving the issue, Can you please try the following queries:

--Converting literals to time
SELECT CAST( '11:10:25'  AS TIME(0))  - CAST('11:00:33' AS TIME(0)) ;

--Integer arithmatic
SELECT 111033 - 110025 ;

--Integer  arithmatic with format
SELECT CAST(111033 - 110025 AS INTEGER FORMAT '99:99:99') ;
  
  --Integer arithmatic with time conversion            
 SELECT CAST( CAST( 110025 AS INTEGER FORMAT '99:99:99') AS TIME(0))-
               CAST( CAST( 111033 AS INTEGER FORMAT '99:99:99') AS TIME(0))  AS VALUE4;

 


Viewing all articles
Browse latest Browse all 14773

Trending Articles



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