Received: from crazypenguins.commandprompt.com (commandprompt.com [64.81.28.146]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f34EvI837371 for ; Wed, 4 Apr 2001 10:57:18 -0400 (EDT) (envelope-from poet@linuxports.com) Received: from crazypenguins.commandprompt.com (crazypenguins.commandprompt.com [64.81.28.146]) by crazypenguins.commandprompt.com (8.9.3/8.9.3) with ESMTP id HAA17720; Wed, 4 Apr 2001 07:49:06 -0700 Date: Wed, 4 Apr 2001 07:49:06 -0700 (PDT) From: Poet/Joshua Drake X-Sender: To: =?iso-8859-4?Q?Algirdas_=A9akmanas?= cc: Subject: Re: outer joins In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT X-Archive-Number: 200104/41 X-Sequence-Number: 2380 Hello, I believe these are supported in 7.1 On Wed, 4 Apr 2001, [iso-8859-4] Algirdas Šakmanas wrote: >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 Šakmanas >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) > -- -- CommandPrompt - http://www.commandprompt.com OpenDocs, LLC. - http://www.opendocs.org LinuxPorts - http://www.linuxports.com LDP - http://www.linuxdoc.org -- Instead of asking why a piece of software is using "1970s technology," start asking why software is ignoring 30 years of accumulated wisdom. --