From: Rudolph, Michael <Michael.Rudolph@telekom.de>
To: 'pgsql-sql@postgresql.org' <pgsql-sql@postgresql.org>
Subject: Problems with joining two tables
Date: Wed, 19 Apr 2000 11:17:26 +0200
Message-ID: <EB8366869DABD2119F3200A0C9F02CC80165449B@U8P27> (raw)
Hi,
I have two tables, the first one has one column as a reference to the index of the second. Not every row in the first table has a reference to the second table. I now want to make a query to get all information of the first table and, if there is a reference, the corresponding information of the second table in that row. In another programming language I would just make an if-clause but how can I do this in SQL?
Thanks for your help
Michael
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: Michael.Rudolph@telekom.de
Subject: Re: Problems with joining two tables
In-Reply-To: <EB8366869DABD2119F3200A0C9F02CC80165449B@U8P27>
References: <EB8366869DABD2119F3200A0C9F02CC80165449B@U8P27>
* 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