Received: from trantor.eads-dsn.com (trantor.eads-dsn.com [194.117.220.38]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f34F5x839094 for ; Wed, 4 Apr 2001 11:06:00 -0400 (EDT) (envelope-from cyril.picard@eads-dsn.com) Received: by trantor.eads-dsn.com; id RAA12213; Wed, 4 Apr 2001 17:05:50 +0200 (MET DST) Received: from unknown(172.29.64.4) by trantor.eads-dsn.com via smap (4.5) id xma012198; Wed, 4 Apr 2001 17:05:32 +0200 Received: from edsnsrvbda01.edsn.com (edsnsrvbda01 [172.29.64.12]) by hermes.eads-dsn.com (8.11.0/8.11.0) with ESMTP id f34EpuG22988; Wed, 4 Apr 2001 16:51:57 +0200 Received: from pmrmnc.edsn.com ([131.129.4.201]) by edsnsrvbda01.edsn.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id G30X7DT0; Wed, 4 Apr 2001 17:02:45 +0200 Received: from pmrpass.edsn.com (PMRPASS [192.168.4.3]) by pmrmnc.edsn.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id 2HKJNGRK; Wed, 4 Apr 2001 17:08:14 +0200 Received: from pmrmsg.edsn.com ([130.10.50.9]) by pmrpass.edsn.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id G302064Q; Wed, 4 Apr 2001 17:02:40 +0200 Received: by pmrmsg.edsn.com with Internet Mail Service (5.5.2650.21) id <22W1PGCM>; Wed, 4 Apr 2001 17:01:41 +0200 Message-ID: From: "Picard, Cyril" To: "'Algirdas Sakmanas'" Cc: pgsql-sql@postgresql.org Subject: RE: outer joins Date: Wed, 4 Apr 2001 17:01:41 +0200 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by postgresql.org id f34F60839096 X-Archive-Number: 200104/42 X-Sequence-Number: 2381 I've read that the version 7.1 provides outer join feature. Since I did not try it yet, I've no more information about it. > -----Message d'origine----- > De: Algirdas Sakmanas [SMTP:asakmanas@grafton.lt] > Date: mercredi 4 avril 2001 13:03 > À: pgsql-sql@postgresql.org > Objet: [SQL] outer joins > > Hi all, > > I'm new to postgre, I've changed my work and consequently now i'm moving > from MS plaform. > In MS SQL there are such constructs left or right outer join, in postgres > there are no such thing > > Can You offer me strategy to make query that selects from table (a) and > joins to it another (b) > on e.g. a.id=b.aid but joins so that in case there is no value in table b > NULL is left in result: > in MS SQL i've used query: > > select a.id, b.name from a left outer join b on a.id=b.aid > > table a table b > > id | aid | name > ----------- ---------------- > 1 1 | Tom > 2 3 | Sam > > result: > a.id | b.name > --------------------- > 1 | Tom > 2 | NULL > > thank you in advance > > Algirdas Sakmanas > IT manager > +370 99 90369 > asakmanas@grafton.lt > Grafton Entertainment > http://www.tvnet.lt > > > > ---------------------------(end of broadcast)--------------------------- > TIP 2: you can get off all lists at once with the unregister command > (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)