From: Edmar Wiggers <edmar@brasmap.com>
To: Warren Vanichuk <pyber@street-light.com>
To: pgsql-sql@postgresql.org
Subject: RE: SQL question regarding a couple of table joins.
Date: Mon, 6 Nov 2000 23:14:58 -0200
Message-ID: <NEBBIAKDCDHFGJMLHCKIAEPPCAAA.edmar@brasmap.com> (raw)
In-Reply-To: <Pine.LNX.4.21.0011061638120.18907-100000@urd.street-light.com>
> SELECT
>
> links.linkid,
>
> links.linkurl,
> links.linktext,
> links.bannerid,
> linkdaystats.linkid
> FROM
> links,
> linkdetail ,
> linkdaystats
> WHERE
> links.linkid = linkdetail.linkid
I guess you have forgot to include: "links.linkid = linkdaystats.linkid"
Moreover, if table linkdaystats is empty that query will return NOTHING. The
solution is to remove linkdaystats from the query, or wait for 7.1 and use
OUTER JOINs.
Yours sincerely,
Edmar Wiggers
BRASMAP Information Systems
+55 48 9960 2752
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: edmar@brasmap.com, pyber@street-light.com
Subject: Re: SQL question regarding a couple of table joins.
In-Reply-To: <NEBBIAKDCDHFGJMLHCKIAEPPCAAA.edmar@brasmap.com>
References: <Pine.LNX.4.21.0011061638120.18907-100000@urd.street-light.com> <NEBBIAKDCDHFGJMLHCKIAEPPCAAA.edmar@brasmap.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