Pls conver these SQL to Teradata SQL

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
rakesh.nc
Participant
Posts: 39
Joined: Wed Aug 01, 2007 5:10 am
Location: Chennai

Pls conver these SQL to Teradata SQL

Post by rakesh.nc »

hi,

pls convert the following SQL queries to Teradata SQL.

1.

DATEDIFF(day,dateadd ( dd , ( r_update_date % 1000 ) - 1 , convert ( datetime ,convert( char(4) , r_update_date / 1000 ) + '/01/01') ) , GETDATE()) > 90[/b][/i]


2.

datepart(d,dateadd(day,-datepart(d,getdate()),getdate());


Rakesh nc
regards,
Rakesh
DS_FocusGroup
Premium Member
Premium Member
Posts: 197
Joined: Sun Jul 15, 2007 11:45 pm
Location: Prague

Post by DS_FocusGroup »

what do u want to do ?
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

No thank you. Surely there is someone you work with that could help you with that.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply