Help me to convert sql query into oracle
-
Tuesday, May 08, 2012 12:14 PM
Hi I am not aware about oracle So please help me to convert below mentioned sql quesry into oracle
select CONTACT_COMPANY, INTERNET_E_MAIL, cast(case when datediff(yy,CAST('07/07/2011' as datetime),GETDATE())>1 then DATEADD(YY,-1,GETDATE()) else '07/07/2011' end as datetime),Description as summary,Incident_Number ,Status, status_reason,DATEADD(SS,Submit_Date, DATEADD(mi,-(-360),'01-01-1970 00:00')) Submit_date from ARADMIN.HPD_HELP_DESK where Login_ID='malbek@honda-eu.com' and upper(Contact_Company) = 'HONDA' and Status=5 and cast(DATEADD(SS,Submit_Date, DATEADD(mi,-(-360),'01-01-1970 00:00')) as datetime)>=cast(case when datediff(yy,CAST('07/07/2011' as datetime),GETDATE())>1 then DATEADD(YY,-1,GETDATE()) else '07/07/2011' end as datetime)
Thanks
Manoj
All Replies
-
Tuesday, May 08, 2012 12:20 PMAnswerer
Hi
I think you will be better of asking this question on Oracle forum
Best Regards, Uri Dimant SQL Server MVP http://dimantdatabasesolutions.blogspot.com/ http://sqlblog.com/blogs/uri_dimant/
- Proposed As Answer by Ed Price - MSFTMicrosoft Employee, Owner Wednesday, December 05, 2012 7:46 AM
- Marked As Answer by Ed Price - MSFTMicrosoft Employee, Owner Thursday, December 06, 2012 12:51 AM
-
Tuesday, May 08, 2012 1:43 PMModerator
Agreed: This is a SQL Sever forum, not an Oracle forum; please submit your question at an Oracle forum.
(locking the thread)

