Received: from mail.postgresql.org (webmail.postgresql.org [216.126.85.28]) by mail.postgresql.org (8.11.1/8.11.1) with SMTP id f0GEqw094062 for ; Tue, 16 Jan 2001 09:52:58 -0500 (EST) (envelope-from pgsql-interfaces-owner@postgresql.org) Received: from henry.newn.cam.ac.uk (henry.newn.cam.ac.uk [131.111.204.130]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id f0FLbC010256; Mon, 15 Jan 2001 16:37:12 -0500 (EST) (envelope-from prlw1@newn.cam.ac.uk) Received: from [131.111.204.180] (helo=quartz.newn.cam.ac.uk) by henry.newn.cam.ac.uk with esmtp (Exim 3.13 #1) id 14IHJO-0004pO-00; Mon, 15 Jan 2001 21:37:10 +0000 Received: from prlw1 by quartz.newn.cam.ac.uk with local (Exim 3.13 #1) id 14IHJ7-0003uI-00; Mon, 15 Jan 2001 21:36:53 +0000 Date: Mon, 15 Jan 2001 21:36:53 +0000 From: Patrick Welche To: Mauricio Hipp Werner Cc: Alexaki Sofia , pgsql-sql@postgresql.org, Markus Wagner , pgsql-interfaces@postgresql.org Subject: Re: outer join in PostgreSql Message-ID: <20010115213653.D8984@quartz.newn.cam.ac.uk> References: <012701c07f40$c7c0a6e0$0672148f@cadm.pjud> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <012701c07f40$c7c0a6e0$0672148f@cadm.pjud>; from mhipp@mail.pjud.cl on Mon, Jan 15, 2001 at 06:16:00PM -0400 X-Archive-Number: 200101/160 X-Sequence-Number: 774 On Mon, Jan 15, 2001 at 06:16:00PM -0400, Mauricio Hipp Werner wrote: > I need help, which is the symbol used in postgreSql to carry out the outer > join. > > in oracle the is used (+) > in sybase the is used * and > in postgreSql? I don't really understand your question, but from src/test/regress/sql/join.sql some examples of use are: -- -- Outer joins -- Note that OUTER is a noise word -- SELECT '' AS "xxx", * FROM J1_TBL LEFT OUTER JOIN J2_TBL USING (i); SELECT '' AS "xxx", * FROM J1_TBL LEFT JOIN J2_TBL USING (i); SELECT '' AS "xxx", * FROM J1_TBL RIGHT OUTER JOIN J2_TBL USING (i); SELECT '' AS "xxx", * FROM J1_TBL RIGHT JOIN J2_TBL USING (i); SELECT '' AS "xxx", * FROM J1_TBL FULL OUTER JOIN J2_TBL USING (i); SELECT '' AS "xxx", * FROM J1_TBL FULL JOIN J2_TBL USING (i); SELECT '' AS "xxx", * FROM J1_TBL LEFT JOIN J2_TBL USING (i) WHERE (k = 1); SELECT '' AS "xxx", * FROM J1_TBL LEFT JOIN J2_TBL USING (i) WHERE (i = 1); Cheers, Patrick