Received: from if.scientech.com (eaglerock.if.scientech.com [198.60.85.3]) by hub.org (8.9.3/8.9.3) with ESMTP id OAA65941 for ; Sat, 19 Feb 2000 14:54:11 -0500 (EST) (envelope-from cmott@scientech.com) Received: from if.scientech.com (IDENT:cmott@if.scientech.com [10.128.1.6] (may be forged)) by if.scientech.com (8.9.3/8.9.3) with ESMTP id MAA15641 for ; Sat, 19 Feb 2000 12:53:40 -0700 Date: Sat, 19 Feb 2000 12:53:40 -0700 (MST) From: Charles Mott To: pgsql-sql@postgresql.org Subject: Outer Joins Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII How are outer joins implemented within PostgreSQL? I would like to do a query of the form: select a.x, b.y from a, b where a.x *= b.x; The *= operator does not seem to exist. I've been able to devise some clumsy workarounds by creating temporary tables: create table temp_table as select a.x, b.y from a, b where a.x = b.x; insert into temp_table select x from a except select a.x from a, b where a.x = b.x; Outer joins are apparently quite common, but I haven't been able to find anything on this in either the users guide, the draft of Bruce Momjian's upcoming book or the Deja News archives. Charles Mott