X-Original-To: pgsql-sql@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 733994762F1 for ; Tue, 8 Apr 2003 11:23:40 -0400 (EDT) Received: from matrix.gatewaynet.com (unknown [217.19.69.50]) by postgresql.org (Postfix) with ESMTP id 53C774762E1 for ; Tue, 8 Apr 2003 11:23:39 -0400 (EDT) Received: from matrix.gatewaynet.com (matrix.gatewaynet.com [217.19.69.50] (may be forged)) by matrix.gatewaynet.com (8.12.5/8.12.5) with ESMTP id h38JeeIs009771; Tue, 8 Apr 2003 17:40:40 -0200 Received: from localhost (achill@localhost) by matrix.gatewaynet.com (8.12.5/8.12.5/Submit) with ESMTP id h38JeeRb009767; Tue, 8 Apr 2003 17:40:40 -0200 Date: Tue, 8 Apr 2003 17:40:39 -0200 (GMT+2) From: Achilleus Mantzios To: rute solipa Cc: "pgsql-sql@postgresql.org" Subject: Re: help need it In-Reply-To: <3E92E3B1.7070405@eselx.ipl.pt> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Status: No, hits=-38.6 required=5.0 tests=BAYES_01,EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT, QUOTE_TWICE_1,REPLY_WITH_QUOTES,SIGNATURE_LONG_DENSE, USER_AGENT_PINE autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200304/117 X-Sequence-Number: 12818 On Tue, 8 Apr 2003, rute solipa wrote: > i've an oracle query: > > Select tb_users.ds_description, tb_users.cd_role, tb_users.cd_user, > tb_users.ds_login, tb_monitores.cod_equipa from tb_users, tb_monitores > where ds_login like 'varLogin' and ds_password like 'varPassword' and > tb_users.cd_user = tb_monitores.cd_user(+) > > how can i transform it to an postgresql query? Can you check the postgresql manual if the (+) operator means something related to OUTER joins? If yes then use [LEFT|RIGHT] OUTER JOIN of postgresql. > > > best regards > > etur > > > ---------------------------(end of broadcast)--------------------------- > TIP 4: Don't 'kill -9' the postmaster > -- ================================================================== Achilleus Mantzios S/W Engineer IT dept Dynacom Tankers Mngmt Nikis 4, Glyfada Athens 16610 Greece tel: +30-210-8981112 fax: +30-210-8981877 email: achill@matrix.gatewaynet.com mantzios@softlab.ece.ntua.gr