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

How to Use Round Function In Teradata - response (7) by Jessy Mahesh Kothapalli

$
0
0

 
Thanks for quick response.
Select ROW_WID,
X_ATTRIB_27,
SYSDATE,
W_ORDER_D.X_ATTRIB_27 - SYSDATE---> Gives in days
FROM W_ORDER_D
WHERE W_ORDER_D.ORDER_TYPE = 'Service Order'
AND ROW_WID IN (11010,11011) ;
ROW_WID,   X_ATTRIB_27,                        SYSDATE ,             Difference Gives in days   
11010    6/30/2004 10:55:20 AM 5/4/2013 3:04:32 PM       -3230.17305555556
11011    6/30/2004 10:56:04 AM                5/4/2013 3:04:32 PM         -3230.1725462963
In Teradata we’ve a limitation that it will NOT be given more 9999 values.
We required output as if it was in oracle, Can you please give me any UDF it gives us difference in exactly days and should allow more than 9999 values.
 
 


Viewing all articles
Browse latest Browse all 27759

Trending Articles



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