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

Obtain a result from the diference between 2 timestamps - response (2) by dnoeth

$
0
0

When you substract 2 timestamps the result is an INTERVAL:

select (timestamp2 - timestamp1) day(4) to second

Caution: this will fail if the difference is >= 10000 days (27 years)
 
Dieter


Viewing all articles
Browse latest Browse all 14773

Trending Articles



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