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

Home -> Community -> Usenet -> c.d.o.server -> Re: ANSI join

Re: ANSI join

From: DA Morgan <damorgan_at_psoug.org>
Date: Mon, 13 Mar 2006 12:57:58 -0800
Message-ID: <1142283460.346074@yasure.drizzle.com>


astalavista wrote:
> Hi,
>
> How can I tanslate the query below into ANSI join:
>
> select
> t.upi,
> t.imputation,
> t.nom,
> t.prenom
> from transactions t,produits p,factures f,codesregroupementproduits
> crp,centresdecout c, imputations i
> where
> t.codeproduit = p.codeproduit(+)
> and t.comptefournisseursap = p.comptefournisseursap(+)
> and t.comptefournisseursap = f.comptefournisseursap(+)
> and t.comptenexans=f.comptenexans(+)
> and t.facture=f.facture(+)
> and p.id_code=crp.id_code(+)
> and t.imputation = c.imputation(+)
> and c.limputation = i.imputation(+)
>
> The following is OK:
>
> select t.upi,t.imputation,t.nom,t.prenom
> from transactions t
> left outer join produits p on t.codeproduit = p.codeproduit and
> t.comptefournisseursap = p.comptefournisseursap
> left outer join factures f on t.comptefournisseursap =
> f.comptefournisseursap and t.comptenexans=f.comptenexans and
> t.facture=f.facture
> left outer join centresdecout c on t.imputation = c.imputation
>
>
> How I can translate the following joins:
> p.id_code=crp.id_code(+)
> and
> and c.limputation = i.imputation(+)
>
>
>
> Thanks in advance ...

Why would you want to? But if you insist ... look in Morgan's Library at www.psoug.org. Click on Joins.

-- 
Daniel A. Morgan
http://www.psoug.org
damorgan_at_x.washington.edu
(replace x with u to respond)
Received on Mon Mar 13 2006 - 14:57:58 CST

Original text of this message

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