Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: ANSI Joins

RE: ANSI Joins

From: Lex de Haan <lex.de.haan_at_naturaljoin.nl>
Date: Tue, 18 Jan 2005 22:13:43 +0100
Message-Id: <20050118220006.3CAE6DBBE@node42.naturaljoin.nl>


allow me to comment on terminology here: both flavors of the join syntax are fully ANSI/ISO compliant.
in other words, there is *no* reason at all to use one over the other for portability reasons --
with the exception of the (rather ugly) Oracle-specific outer join syntax using the (+) operator.
I hope everyone agrees with me that the ANSI/ISO outer join syntax is much more readable and less error prone.
everything else is a matter of taste ...

cheers,  

Lex.  



Tom Kyte Seminar: http://www.naturaljoin.nl/events/seminars.html
 

-----Original Message-----

From: oracle-l-bounce_at_freelists.org [mailto:oracle-l-bounce_at_freelists.org] On Behalf Of alan.aschenbrenner_at_ihs.com
Sent: Tuesday, January 18, 2005 22:03
To: mgogala_at_allegientsystems.com
Cc: 'Oracle-L (E-mail)'; oracle-l-bounce_at_freelists.org Subject: Re: ANSI Joins

Mladen,

    I also dislike ANSI syntax. Besides it being difficult to read, the optimizer sometimes does crazy things with ANSI syntax (especially when involving dblinks). I have rewritten a few selects into non-ANSI syntax, and the optimizer has chosen a MUCH better execution plan. I have seen queries run for minutes in ANSI syntax, but take only seconds when rewritten in non-ANSI syntax. Maybe the ANSI syntax query was written poorly, but not being proficient in it, I couldn't make any suggestions... (these observations were made with 9i databases)

Has anyone else had this experience?

If it is an optimizer problem, maybe this is fixed in the 10g optimizer. Anyone?

My 2 cents...

Alan

Alan Aschenbrenner
Oracle DBA
Information Handling Services
alan.aschenbrenner_at_ihs.com



Confidentiality Notice: The information in this e-mail may be confidential and / or privileged. This e-mail is intended to be reviewed by only the individual or organization named in the e-mail address. If you are not the intended recipient, you are hereby notified that any review, dissemination or copying of this e-mail and attachments, if any, or the information contained herein, is strictly prohibited.  

                      Mladen Gogala

                      <mgogala_at_allegients        To:       "'Oracle-L
(E-mail)'" <oracle-l_at_freelists.org>                                
                      ystems.com>                cc:

                      Sent by:                   Subject:  ANSI Joins

                      oracle-l-bounce_at_fre

                      elists.org

 

 

                      01/18/2005 11:45 AM

                      Please respond to

                      mgogala

 

 





My developers are starting to use ANSI joins in vain hope that they will make their apps portable across databases. I have a positive attitude toward ANSI joins: I hate those verbose extensions that make SQL statements lengthy and unreadable. What is the opinion of other people about ANSI joins? What is the @#$%! allure of those things? Where did they learn it from? Is there any readable document
that explains ANSI joins for dummies?

--

Mladen Gogala
Oracle DBA
Ext. 121

--

http://www.freelists.org/webpage/oracle-l

--

http://www.freelists.org/webpage/oracle-l

--

http://www.freelists.org/webpage/oracle-l Received on Wed Jan 19 2005 - 00:20:33 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US