Re: [GENERAL] How do you live without OUTER joins? - Mailing list pgsql-general

From Bruce Momjian
Subject Re: [GENERAL] How do you live without OUTER joins?
Date
Msg-id 200001121416.JAA26143@candle.pha.pa.us
Whole thread Raw
In response to Re: [GENERAL] How do you live without OUTER joins?  (David Warnock <david@sundayta.co.uk>)
List pgsql-general
> Bruce,
>
> Can't a sub select do this (mind you not sure if PostgreSQL supports sub
> selects)?
>
> eg
>
> select company_name, (select com_cat_long from company_category cat
> where cat.com_cat_abbr = cpy.com_cat_abbr) from company cpy
>

Only 7.0 will support subselects in the target list.  6.5.* only
supports them in the WHERE clause.


--
  Bruce Momjian                        |  http://www.op.net/~candle
  maillist@candle.pha.pa.us            |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

pgsql-general by date:

Previous
From: Wim Ceulemans
Date:
Subject: Re: [GENERAL] constant column value in view with union
Next
From: Bruce Momjian
Date:
Subject: Re: [GENERAL] query with LIKE