Left Join Queries

From: "Derricutt, Mark" <DerricuttM(at)pbworld(dot)com>
To: "'pgsql-general(at)postgresql(dot)org'" <pgsql-general(at)postgresql(dot)org>
Subject: Left Join Queries
Date: 1999-12-07 02:05:45
Message-ID: 93314B6256A5D211BE8B006097B9502717912B@NZAM
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi, I was just wondering if PostgreSQL supports left join queries yet? Or
if not, if its on the cards to the next release?

I'm in the process of porting an application from Paradox to use several
database servers, and was surprised to read in some older posts (from the
web-archive) that PostgreSQL didn't do left joins.

One of the queries I'm doing is as follows (rather simple as well):

SELECT a.CrossID, a.Name, a.LandScape, COUNT(b.CrossID) AS countfld
FROM ctabhed a LEFT JOIN ctabdat b ON a.CrossID = b.CrossID
GROUP BY a.CrossID, a.Name, a.LandScape

This just returns the header data, and the count of the detail in one table.

Mark

--
Mark Derricutt
Now Playing: Roine Stolt - The flower king

Browse pgsql-general by date

  From Date Subject
Next Message Lincoln Yeoh 1999-12-07 02:13:33 Re: [GENERAL] Oft Ask: How to contribute to PostgreSQL?
Previous Message affiliate1 1999-12-06 22:47:46 The Internet Directories