Re: outer joins

From: Poet/Joshua Drake <poet(at)linuxports(dot)com>
To: Algirdas Šakmanas <asakmanas(at)grafton(dot)lt>
Cc: <pgsql-sql(at)postgresql(dot)org>
Subject: Re: outer joins
Date: 2001-04-04 14:49:06
Message-ID: Pine.LNX.4.30.0104040748550.17698-100000@crazypenguins.commandprompt.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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(at)grafton(dot)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(at)postgresql(dot)org)
>

--
--
<COMPANY>CommandPrompt - http://www.commandprompt.com </COMPANY>
<PROJECT>OpenDocs, LLC. - http://www.opendocs.org </PROJECT>
<PROJECT>LinuxPorts - http://www.linuxports.com </PROJECT>
<WEBMASTER>LDP - http://www.linuxdoc.org </WEBMASTER>
--
Instead of asking why a piece of software is using "1970s technology,"
start asking why software is ignoring 30 years of accumulated wisdom.
--

In response to

  • outer joins at 2001-04-04 11:03:11 from Algirdas Šakmanas

Browse pgsql-sql by date

  From Date Subject
Next Message The Hermit Hacker 2001-04-04 14:59:47 [7.0.3] optimizing a LIKE query ...
Previous Message tjk@tksoft.com 2001-04-04 14:22:43 Re: outer joins