From: Brice Ruth <brice@webprojkt.com>
To: pgsql-sql@postgresql.org
Subject: SQL Join - MySQL/PostgreSQL difference?
Date: Thu, 01 Feb 2001 10:56:36 -0600
Message-ID: <3A799543.F4AC1E35@webprojkt.com> (raw)
Greetings.
I'm working with a product provided by a third part that interfaces to
data housed in a database of your choice. Previously, my choice was
MySQL - apparently it handled certain queries too slowly, so I'm giving
PostgreSQL a shot. Here's the query:
SELECT
a.Number,
a.Code,
a.Text
FROM
b,
a
WHERE
(b.Id = a.Id) AND
(VersionId = 'key1') AND
(Category = 'key2') AND
(b.d_Id = 'key3')
ORDER BY
a.Number;
(my apologies: I had to 'mangle' the table/column names because of NDA)
So my question is this: would this query operate differently in MySQL
than in PostgreSQL? The reason I ask is that this query in MySQL
returns results, yet in PostgreSQL it does not. I read a post about
PostgreSQL not supporting outer joins, but I don't have enough
experience with SQL to determine if this is such a query or not. Please
advise.
Any help will be (as always) sincerely appreciated.
--
Brice Ruth
WebProjkt, Inc.
VP, Director of Internet Technology
http://www.webprojkt.com/
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: brice@webprojkt.com
Subject: Re: SQL Join - MySQL/PostgreSQL difference?
In-Reply-To: <3A799543.F4AC1E35@webprojkt.com>
References: <3A799543.F4AC1E35@webprojkt.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