From: Matthew Hagerty <matthew@venux.net>
To: pgsql-sql@postgresql.org
Subject: OUTER JOINS in 6.4.2?? Work around??
Date: Wed, 24 Feb 1999 20:25:12 -0500
Message-ID: <4.1.19990224201140.009a9820@mail.venux.net> (raw)
Greetings,
I know this is probably asked a thousand times, but I cannot find a
reference anywhere on the web site. If there is one, please point me there...
Is it possible to do LEFT and RIGHT OUTER JOINS? i.e.
SELECT * FROM foo LEFT OUTER JOIN bar ON foo.id=bar.id;
All I could find on the web site was that PostgreSQL supports a subset of
SQL92 and SQL3. Is there someplace that tells what that subset is?
Maybe I don't need the join if there is some other way... I'm trying to
work out a query to give me one row from the many side of a 1-to-many
relationship for each row in the one side; basically making a 1-to-1 by
ignoring extra rows in the many table. For instance, a table of customers
(the one table) have phone numbers (the many table). I want to display a
list of customers with a phone number, but only one number regardless of
how many phone numbers there are.
Any insight would be greatly appreciated.
Thanks,
Matthew
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: matthew@venux.net
Subject: Re: OUTER JOINS in 6.4.2?? Work around??
In-Reply-To: <4.1.19990224201140.009a9820@mail.venux.net>
References: <4.1.19990224201140.009a9820@mail.venux.net>
* 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