newbie outer-join

From: "Matlack, Brad" <matlackb(at)ogden(dot)disa(dot)mil>
To: pgsql-sql(at)postgresql(dot)org
Subject: newbie outer-join
Date: 1999-11-08 20:06:23
Message-ID: 69730CEEF766D311B4D800902785F90413BE5C@kssgqm01.ogden.disa.mil
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

I'm trying to do what I think is an outer-join:

SELECT
da.datname as database,
de.description as comment
FROM
pg_database as da,
pg_description as de
WHERE
(da.oid = de.objoid)

Obviously, if there are no descriptions, no values will be returned.
What I want is to display all databases, with comments (valid or null).

How do I form the WHERE clause?
Thanks,
Brad Matlack
matlackb(at)ogden(dot)disa(dot)mil

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Bruce Momjian 1999-11-08 20:39:33 Re: [SQL] parser :parse error
Previous Message Jan Wieck 1999-11-08 17:57:04 Re: [SQL] Declare Cursor...