> 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(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026