From: Josh Berkus <josh@agliodbs.com>
To: Martín Marqués <martin@bugs.unl.edu.ar>
To: pgsql sql Mailing List <pgsql-sql@postgresql.org>
Subject: Re: views and null bothering
Date: Mon, 06 Aug 2001 17:02:39 -0700
Message-ID: <web-97725@davinci.ethosmedia.com> (raw)
In-Reply-To: <01080620362304.00347@bugs>
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@agliodbs.com
and data management solutions (415) 565-7293
for law firms, small businesses fax 621-2533
and non-profit organizations. San Francisco
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: josh@agliodbs.com, martin@bugs.unl.edu.ar
Subject: Re: views and null bothering
In-Reply-To: <web-97725@davinci.ethosmedia.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox