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

Home -> Community -> Usenet -> c.d.o.misc -> Re: JOINS !

Re: JOINS !

From: Vladimir M. Zakharychev <bob_at_dpsp-yes.com>
Date: Wed, 19 Mar 2003 13:19:52 +0300
Message-ID: <b59g8a$inb$1@babylon.agtel.net>


Couple of notes:

  1. No Oracle version. In 9i, you can use ANSI JOIN syntax the same way you do in mssql (that is, use LEFT JOIN instead of those (+) thingies.) With 8i - you have to live with them and the fact that certain joins are not possible with this syntax. 9.2 with the latest patch set applied is recommended though - there were numerous bugs with ANSI joins in 9.0.1 and initial 9.2 releases ranging from security holes to wrong results.
  2. Use NVL() instead of IsNull().
  3. Empty strings are NULLs in Oracle, so NVL(acolumn,'') will result in NULL if acolumn is NULL - not what you actually want. You gotta add AND (acolumn IS NOT NULL) condition for each column where you expect NULLs but compare to a constant - you can't compare NULLs to anything.

That's actually three notes. :) Corrections and additions welcome.

-- 
Vladimir Zakharychev (bob@dpsp-yes.com)                http://www.dpsp-yes.com
Dynamic PSP(tm) - the first true RAD toolkit for Oracle-based internet applications.
All opinions are mine and do not necessarily go in line with those of my employer.
Received on Wed Mar 19 2003 - 04:19:52 CST

Original text of this message

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