X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id B381C53B75 for ; Mon, 18 Apr 2005 12:13:50 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 46515-03 for ; Mon, 18 Apr 2005 15:13:45 +0000 (GMT) Received: from poweredge.attiksystem.ch (adsl-soholight-4-c59-p029.vtx.ch [212.147.59.29]) by svr1.postgresql.org (Postfix) with ESMTP id 91834538AC for ; Mon, 18 Apr 2005 12:13:41 -0300 (ADT) MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: Re: outer join in ms query Content-class: urn:content-classes:message X-MimeOLE: Produced By Microsoft Exchange V6.0.6487.1 Date: Mon, 18 Apr 2005 17:13:35 +0200 Message-ID: <6C0CF58A187DA5479245E0830AF84F42143235@poweredge.attiksystem.ch> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [SQL] outer join in ms query Thread-Index: AcVEJtRzXaJs5F2tQv6ALF06Qw73oAAAiPYw From: "Philippe Lang" To: X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.05 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200504/251 X-Sequence-Number: 21144 Or add a view to your PG database, and simply issue a select from = Excel... That faster and easier to maintain that any code you can write = client-side... -----Message d'origine----- De : pgsql-sql-owner@postgresql.org = [mailto:pgsql-sql-owner@postgresql.org] De la part de Jeff Eckermann Envoy=E9 : lundi, 18. avril 2005 16:51 =C0 : pgsql-sql@postgresql.org Objet : Re: [SQL] outer join in ms query MS Query is crippled. If you want to do much from Excel, you will need = to write code. But it's not difficult. ADO is a good choice for this. "gad renert via DBMonster.com" wrote in = message news:91d2a328e2c04b1086807bac8910c34c@DBMonster.com... > Hello, I am a novice with SQL, I have 2 tables > (transfer) > bar_code | quant | date > 723445...| 2 |01/03/2005 > > (imports) > > bar_code | serial_no | supplier > > > I want to add to the first table (transfer) next to each barcode the=20 > suppliers name from the (imports) table. > > ms query doesn't allow me to do outer joins. > > I tried: > SELECT transfer.bar_code, transfer.quant, imports.supplier FROM=20 > transfer left join imports on transfer.bar_code=3Dimports.bar_cod = GROUP=20 > BY transfer.bar_code > > and it didn't work popperly, the (transfer) table is modified. > what i want to do is very similar to the VLOOKUP function in EXCELL > > Hope that someone can help me. > > Gadi > > -- > Message posted via http://www.dbmonster.com ---------------------------(end of broadcast)--------------------------- TIP 9: the planner will ignore your desire to choose an index scan if = your joining column's datatypes do not match