From: | "Josh Berkus" <josh(at)agliodbs(dot)com> |
---|---|
To: | Martín Marqués <martin(at)bugs(dot)unl(dot)edu(dot)ar>, pgsql sql Mailing List <pgsql-sql(at)postgresql(dot)org> |
Subject: | Re: views and null bothering |
Date: | 2001-08-07 00:02:39 |
Message-ID: | web-97725@davinci.ethosmedia.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
Martin,
> I have a bunch of tables which I give access through a view. The
> problem is
> that in the main table there are columns, that are referenced to
> another
> tables column, that have NULLs.
> In the SELECT inside the view's definition I put the join equality,
> but have
> lots of trouble makeing it put correctly the columns that have NULL
> values.
You need to use LEFT OUTER JOIN, supported in Postgres 7.1.x.
See the current postgresql docs, or your favorite ANSI-SQL handbook, for
guidance.
-Josh Berkus
______AGLIO DATABASE SOLUTIONS___________________________
Josh Berkus
Complete information technology josh(at)agliodbs(dot)com
and data management solutions (415) 565-7293
for law firms, small businesses fax 621-2533
and non-profit organizations. San Francisco
From | Date | Subject | |
---|---|---|---|
Next Message | Gonzo Rock | 2001-08-07 00:17:53 | Simple Insert Problem |
Previous Message | Martín Marqués | 2001-08-06 23:36:23 | views and null bothering |