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 -> ANSI join

ANSI join

From: astalavista <nobody_at_nowhere.com>
Date: Mon, 13 Mar 2006 21:48:44 +0100
Message-ID: <4415dadf$0$22493$636a55ce@news.free.fr>


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 ... Received on Mon Mar 13 2006 - 14:48:44 CST

Original text of this message

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