Article View: borland.public.interbase.sql
Article #10960Re: JOINING 3 TABLES
From: Sergio Gonzalez
Date: Tue, 31 Dec 2002 19:54
Date: Tue, 31 Dec 2002 19:54
48 lines
2443 bytes
2443 bytes
Thanks! It seems to work now! But I'm a bit confused: now my previous select seems to work as well !!! So I have just one question: I guess that in a master/detail relationship all the parameters in the SelectSQL of the detail table that has the same name that existing fields in the master table, are filled automatically with the master table data. Is that correct??? Sergio. "amita" <amita@agnisoft.com> escribi๏ฟฝ en el mensaje > Try > > select > oc.*, > des.NOMBRE, > ar.CODIGO, ar.CODIGO_BARON, ar.CODIGO_S_PROV > from > ORDEN_COMPRA_1 oc inner join DESCRIPCIONES des on (oc.ID_ARTICULO = > des.ID) inner join > ARTICULO ar on (oc.ID_ARTICULO = ar.ID) > where > oc.NUMERO = :NUMERO and > des.ID_TIPO_DES = ( Select ID_TIPO_DES from MainPurChaseOrderTable > where MainPurChaseOrderTable.NUMERO =:NUMERO) > > -- > Amita > Agnisoft, India > > "Sergio Gonzalez" <shg@sion.com> wrote in message > > > > select > > oc.*, > > des.NOMBRE, > > ar.CODIGO, ar.CODIGO_BARON, ar.CODIGO_S_PROV > > from > > ORDEN_COMPRA_1 oc, > > DESCRIPCIONES des, > > ARTICULO ar > > where > > oc.NUMERO = :NUMERO and > > oc.ID_ARTICULO = des.ID and > > oc.ID_ARTICULO = ar.ID and > > des.ID_TIPO_DES = :ID_TIPO_DES
Technical Details
Message-ID:
<3e11f6e4@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!newsswitch.lcs.mit.edu!newsfeed.cwix.com!opentransit.net!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3e10b17c@newsgroups.borland.com> <27f11v8svcl7nf4u3v6ja8fvrmshonp1tn@4ax.com> <3e111bfd$1@newsgroups.borland.com> <3e113850@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 114a0e,287ab2d1cf2e4217 X-Google-Attributes: gid114a0e,public X-Google-ArrivalTime: 2002-12-31 12:10:03 PST Reply-To: "Sergio Gonzalez" <shg@sion.com> From: "Sergio Gonzalez" <shg@sion.com> Newsgroups: borland.public.interbase.sql References: <3e10b17c@newsgroups.borland.com> <27f11v8svcl7nf4u3v6ja8fvrmshonp1tn@4ax.com> <3e111bfd$1@newsgroups.borland.com> <3e113850@newsgroups.borland.com> Subject: Re: JOINING 3 TABLES Date: Tue, 31 Dec 2002 16:54:34 -0300 Lines: 51 Organization: SG X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 NNTP-Posting-Host: 200.69.38.109 Message-ID: <3e11f6e4@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1041364708 200.69.38.109 (31 Dec 2002 11:58:28 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!newsswitch.lcs.mit.edu!newsfeed.cwix.com!opentransit.net!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail