X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 9934ED1B7DC for ; Fri, 25 Jun 2004 19:23:52 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 43454-01 for ; Fri, 25 Jun 2004 22:23:45 +0000 (GMT) Received: from megazone.bigpanda.com (megazone.bigpanda.com [64.147.171.210]) by svr1.postgresql.org (Postfix) with ESMTP id 32637D1B489 for ; Fri, 25 Jun 2004 19:23:42 -0300 (ADT) Received: by megazone.bigpanda.com (Postfix, from userid 1001) id 4A2E835ABE; Fri, 25 Jun 2004 15:23:44 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by megazone.bigpanda.com (Postfix) with ESMTP id 48A1235ABD; Fri, 25 Jun 2004 15:23:44 -0700 (PDT) Date: Fri, 25 Jun 2004 15:23:44 -0700 (PDT) From: Stephan Szabo To: "=?iso-8859-1?q?Jhonatas=20M.=20Rodr=EDguez?=" Cc: pgsql-admin@postgresql.org Subject: Re: Continue with the original idea, about JOINS.... In-Reply-To: <20040625215623.54611.qmail@web14101.mail.yahoo.com> Message-ID: <20040625151400.L41286@megazone.bigpanda.com> References: <20040625215623.54611.qmail@web14101.mail.yahoo.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=X-UNKNOWN Content-Transfer-Encoding: QUOTED-PRINTABLE X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200406/341 X-Sequence-Number: 14001 On Fri, 25 Jun 2004, [iso-8859-1] Jhonatas M. Rodr=EDguez wrote: > Hey, i have a question about of the uses the joins > in PostgreSQL. > > In SQL Server the joins i can use with the simbol(*), > Example:. the right join is > "table1.field1 =3D* table2.field2" > > In Oracle the joins are with the simbol (+), > Example:. the left join is > "table1.field1 (+)=3D table2.field2" > > What is the simbol the PostgreSQL in the use the > JOINS?.... > > I want to continue with the original idea, how i do a > join without > (table1 LEFT JOIN table2 ON (table1.field1 =3D > table2.field2) > table2 RIGHT OUTER JOIN table1 ON (table2.field2 =3D > table1.field1)) > > else with a simbol (as (*,+, anything)). You don't do outer joins in PostgreSQL with a symbol. We only support the standard mandated way of doing the joins. Syntaxes like the Oracle and SQL Server one above are at best imprecise and at worst entirely broken(*) so I doubt that we're going to support one in the future. (*) - The symbol using syntaxes above are ripe for possible problems where you have conflicting conditions which you either need to diagnose or come up with semantics for. Also, since join ordering is potentially significant to outer join behavior, syntax that hides that is dangerous.