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: 8 Join Table... Access to Oracle... Think your good? Try and Master this one!

Re: 8 Join Table... Access to Oracle... Think your good? Try and Master this one!

From: DA Morgan <damorgan_at_psoug.org>
Date: Thu, 19 Oct 2006 09:27:12 -0700
Message-ID: <1161275227.739370@bubbleator.drizzle.com>


mgillesp_at_uoguelph.ca wrote:

> Oracle:
>
> WHERE
>
> WHERE
> B_DATA_FROM_SPECIMNS.HSBJ_ID = EMHEALTH_SUBJECT_TYPE.HSBJ_ID(+)
> AND
> B_DATA_FROM_SPECIMNS.SPECIMN_ID = B_COLLECTION_PT.SPECIMN_ID(+)
> AND
> B_DATA_FROM_SPECIMNS.SPECIMN_ID =
> B_GET_PROD_DATA_CROSSTAB.SPECIMN_ID(+)
> AND
> PERSON.GENDER_ID = RD_GENDER.VALUE_ID(+)
> AND
> ANML_HSBJ.GENDER_ID=RD_GENDER_1.VALUE_ID(+)
> AND
> HMN_HSBJ.PERSON_ID=PERSON.PERSON_ID(+)
> AND
> HMN_HSBJ.HSBJ_ID(+)=EMHEALTH_SUBJECT_TYPE.HSBJ_ID
> AND
> ANML_HSBJ.HSBJ_ID(+)=EMHEALTH_SUBJECT_TYPE.HSBJ_ID
>
>
> Now some of the Right and Left Joins are mixed up between the Oracle
> and Access versions, but I think they did this because Oracle doesn't
> allow two outer joins on the same table in one query.

Sure it does. You just need to code in-line views and then join them.

-- 
Daniel A. Morgan
University of Washington
damorgan_at_x.washington.edu
(replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org
Received on Thu Oct 19 2006 - 11:27:12 CDT

Original text of this message

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