Quantcast
Channel: Teradata Forums - All forums
Viewing all articles
Browse latest Browse all 27759

How to Use Round Function In Teradata - response (6) by dnoeth

$
0
0

Hi Mahesh,
there's ROUND in TD14...
In your case you don't need ROUND as a CAST AS DECIIMAL(xx,0) should return the same result.
 
But i assume W_ORDER_D.X_ATTRIB_27 is a TIMESTAMP and then it's probably more complicated, depends on what you actually want. Do you already have a replacement for those calculations?
SYSDATE + ( 330 / 1440 ) -> SYYDATE + INTERVAL 330 MINUTE
W_ORDER_D.X_ATTRIB_27 - SYSDATE will return an INTERVAL, e.g. DAY(4) TO SECOND
 
Dieter


Viewing all articles
Browse latest Browse all 27759

Trending Articles



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