Unix Technical Forum

Comparison of Oracle commans Vs. SQL Server Commands

This is a discussion on Comparison of Oracle commans Vs. SQL Server Commands within the Oracle Database forums, part of the Database Server Software category; --> Where can I find a short comparision of SQL comands of both products? I need to find the Oracle ...


Go Back   Unix Technical Forum > Database Server Software > Oracle Database

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-26-2008, 05:54 AM
Geri Reshef
 
Posts: n/a
Default Comparison of Oracle commans Vs. SQL Server Commands

Where can I find a short comparision of SQL comands of both products?
I need to find the Oracle equivalents of some SQL Server commands
(e.g. date functions).

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-26-2008, 05:54 AM
Vladimir M. Zakharychev
 
Posts: n/a
Default Re: Comparison of Oracle commans Vs. SQL Server Commands

On May 23, 9:02 am, Geri Reshef <GeriRes...@gmail.com> wrote:
> Where can I find a short comparision of SQL comands of both products?
> I need to find the Oracle equivalents of some SQL Server commands
> (e.g. date functions).


How about googling for them? This page pops up among top 3 for "oracle
mssql sql difference":

http://www.bristle.com/Tips/SQL.htm#...s_sql_serv er

and it has some helpful links to further reading. Also, see
http://tahiti.oracle.com for complete Oracle documentation.

Hth,
Vladimir M. Zakharychev
N-Networks, makers of Dynamic PSP(tm)
http://www.dynamicpsp.com

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-26-2008, 05:55 AM
Mark D Powell
 
Posts: n/a
Default Re: Comparison of Oracle commans Vs. SQL Server Commands

On May 23, 1:02 am, Geri Reshef <GeriRes...@gmail.com> wrote:
> Where can I find a short comparision of SQL comands of both products?
> I need to find the Oracle equivalents of some SQL Server commands
> (e.g. date functions).


The Oracle single row functions such at sysdate, to_date, add_months,
and trunc can be found in the SQL manual.

UT1 > set echo on
UT1 > @t7
UT1 > select
2 sysdate Today
3 ,add_months(sysdate, -1) Last_Month
4 ,sysdate + 1 Tomorrow
5 ,to_char(sysdate,'YYYYMMDD HH24:MI:SS') With_Time
6 from dual
7 /

TODAY LAST_MONT TOMORROW WITH_TIME
--------- --------- --------- -----------------
23-MAY-07 23-APR-07 24-MAY-07 20070523 09:41:53

HTH -- Mark D Powell --

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-26-2008, 05:55 AM
DA Morgan
 
Posts: n/a
Default Re: Comparison of Oracle commans Vs. SQL Server Commands

Geri Reshef wrote:
> Where can I find a short comparision of SQL comands of both products?
> I need to find the Oracle equivalents of some SQL Server commands
> (e.g. date functions).


www.psoug.org
click on Morgan's Library
click on Microsoft SQL Server 2005 Comparison

It is not complete, and undoubtedly contains a few errors, but it will
get you started.
--
Daniel A. Morgan
University of Washington
damorgan@x.washington.edu
(replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-26-2008, 05:57 AM
Brian Peasland
 
Posts: n/a
Default Re: Comparison of Oracle commans Vs. SQL Server Commands

Geri Reshef wrote:
> Where can I find a short comparision of SQL comands of both products?
> I need to find the Oracle equivalents of some SQL Server commands
> (e.g. date functions).
>


This is one of the better ones I've found:

http://www.microsoft.com/technet/pro....mspx?mfr=true

It's written by Microsoft in the hopes you'll migrate to SQL Server, but
you can use the doc to go the other way too!

Cheers,
Brian


--
================================================== =================

Brian Peasland
dba@nospam.peasland.net
http://www.peasland.net

Remove the "nospam." from the email address to email me.


"I can give it to you cheap, quick, and good.
Now pick two out of the three" - Unknown

--
Posted via a free Usenet account from http://www.teranews.com

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-26-2008, 05:57 AM
DA Morgan
 
Posts: n/a
Default Re: Comparison of Oracle commans Vs. SQL Server Commands

Brian Peasland wrote:
> Geri Reshef wrote:
>> Where can I find a short comparision of SQL comands of both products?
>> I need to find the Oracle equivalents of some SQL Server commands
>> (e.g. date functions).
>>

>
> This is one of the better ones I've found:
>
> http://www.microsoft.com/technet/pro....mspx?mfr=true
>
>
> It's written by Microsoft in the hopes you'll migrate to SQL Server, but
> you can use the doc to go the other way too!
>
> Cheers,
> Brian


I started reviewing the site but had to stop when my laughter started
bothering those around me.

This is priceless:
"Clustering is a shared disk, hardware solution protecting against
computer failure."

Forget cache fusion.
Forget TAF and FCF.
Forget that RAC is not a hardware solution.
Forget the fact that shared disk is a very small part of RAC.

It is best to suspend one's synapses when reading Microsoft docs.
--
Daniel A. Morgan
University of Washington
damorgan@x.washington.edu
(replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-26-2008, 05:57 AM
EscVector
 
Posts: n/a
Default Re: Comparison of Oracle commans Vs. SQL Server Commands

On May 23, 10:09 am, Brian Peasland <d...@nospam.peasland.net> wrote:
> Geri Reshef wrote:
> > Where can I find a short comparision of SQL comands of both products?
> > I need to find the Oracle equivalents of some SQL Server commands
> > (e.g. date functions).

>
> This is one of the better ones I've found:
>
> http://www.microsoft.com/technet/pro...eskit/part2/c0...
>
> It's written by Microsoft in the hopes you'll migrate to SQL Server, but
> you can use the doc to go the other way too!
>
> Cheers,
> Brian
>
> --
> ================================================== =================
>
> Brian Peasland
> d...@nospam.peasland.nethttp://www.peasland.net
>
> Remove the "nospam." from the email address to email me.
>
> "I can give it to you cheap, quick, and good.
> Now pick two out of the three" - Unknown
>
> --
> Posted via a free Usenet account fromhttp://www.teranews.com


I've taken and passed the MSSQL and Oracle cert tests and that doc is
pretty bad.... Oracle 7...? Why not compare 10g to SQLServer 7?
Whew!

Why not simply know what function you need and refer to the actual
Oracle docs rather than some comparison list? It doesn't take that
long.

http://download-east.oracle.com/docs...b14200/toc.htm





Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-26-2008, 05:57 AM
EscVector
 
Posts: n/a
Default Re: Comparison of Oracle commans Vs. SQL Server Commands

On May 23, 1:02 am, Geri Reshef <GeriRes...@gmail.com> wrote:
> Where can I find a short comparision of SQL comands of both products?
> I need to find the Oracle equivalents of some SQL Server commands
> (e.g. date functions).


There's no DATEDIFF in Oracle. But you can create a function that
equates.
http://msdn2.microsoft.com/en-us/lib...9(SQL.80).aspx


http://asktom.oracle.com/tkyte/Misc/DateDiff.html

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 02-26-2008, 05:57 AM
DA Morgan
 
Posts: n/a
Default Re: Comparison of Oracle commans Vs. SQL Server Commands

EscVector wrote:
> On May 23, 1:02 am, Geri Reshef <GeriRes...@gmail.com> wrote:
>> Where can I find a short comparision of SQL comands of both products?
>> I need to find the Oracle equivalents of some SQL Server commands
>> (e.g. date functions).

>
> There's no DATEDIFF in Oracle. But you can create a function that
> equates.
> http://msdn2.microsoft.com/en-us/lib...9(SQL.80).aspx
>
>
> http://asktom.oracle.com/tkyte/Misc/DateDiff.html


You can also use the minus (-) operator.
--
Daniel A. Morgan
University of Washington
damorgan@x.washington.edu
(replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 02-26-2008, 05:59 AM
EscVector
 
Posts: n/a
Default Re: Comparison of Oracle commans Vs. SQL Server Commands

On May 24, 5:11 pm, DA Morgan <damor...@psoug.org> wrote:
> EscVector wrote:
> > On May 23, 1:02 am, Geri Reshef <GeriRes...@gmail.com> wrote:
> >> Where can I find a short comparision of SQL comands of both products?
> >> I need to find the Oracle equivalents of some SQL Server commands
> >> (e.g. date functions).

>
> > There's no DATEDIFF in Oracle. But you can create a function that
> > equates.
> >http://msdn2.microsoft.com/en-us/lib...9(SQL.80).aspx

>
> >http://asktom.oracle.com/tkyte/Misc/DateDiff.html

>
> You can also use the minus (-) operator.
> --
> Daniel A. Morgan
> University of Washington
> damor...@x.washington.edu
> (replace x with u to respond)
> Puget Sound Oracle Users Groupwww.psoug.org


But some people need functions...

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 05:18 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com