Hi Team,
Oracle query :
select row_wid,
X_ATTRIB_27,
X_ORD_DT_CREATED,
abs((TO_NUMBER(TO_CHAR(T61292.X_ATTRIB_27, 'mi'), '99') - TO_NUMBER(TO_CHAR(( CAST(T61292.X_ORD_DT_CREATED as DATE) + ( 330 / 1440 ) ), 'mi'), '99')
+ (TO_NUMBER(TO_CHAR(T61292.X_ATTRIB_27, 'hh24'), '99') - TO_NUMBER(TO_CHAR(( CAST(T61292.X_ORD_DT_CREATED as DATE) + ( 330 / 1440 ) ), 'hh24'), '99') +
(TO_NUMBER(TO_CHAR(T61292.X_ATTRIB_27, 'DDD'), '999') - TO_NUMBER(TO_CHAR(( CAST(T61292.X_ORD_DT_CREATED as DATE) + ( 330 / 1440 ) ), 'DDD'), '999')) * 24) * 60) / nullif( 60, 0)) as c10
from W_ORDER_D T61292
where ROW_WID in ('17858507','17983634','18035254');
Results :-
row_wid X_ATTRIB_27 X_ORD_DT_CREATED C10
17858507 10/1/2008 1:03:29 PM 10/1/2008 7:31:28 AM 0.0333333333333333
17983634 10/7/2008 2:52:37 PM 10/7/2008 9:18:48 AM 0.0666666666666667
18035254 10/11/2008 1:10:50 PM 10/11/2008 7:38:22 AM 0.0333333333333333
How can we convert above mentioned query into Teradata13.10, Please help from this situation?
Appriciate in advance:)
Hi Team,
How can we convert above mentioned query into Teradata13.10, Please help from this situation?
Appriciate in advance:)