X-Original-To: pgsql-sql@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 34A1A4758F1 for ; Tue, 29 Apr 2003 05:59:59 -0400 (EDT) Received: from smtp-out.net.ipl.pt (31.220.137.193.in-addr.arpa [193.137.220.31]) by postgresql.org (Postfix) with ESMTP id AFC3F4758F1 for ; Tue, 29 Apr 2003 05:59:22 -0400 (EDT) Received: (qmail 9920 invoked by uid 508); 29 Apr 2003 10:59:23 +0100 Received: from rutes@eselx.ipl.pt by smtp-int.net.ipl.pt by uid 505 with qmail-scanner (sophie: 2.14/3.68. spamassassin: 2.50. Clear:. Processed in 0.054839 secs); 29 Apr 2003 09:59:23 -0000 X-IPLNet-RcptTo: Multiple Received: from matrix.eselx.ipl.pt (193.137.237.148) by 0 with SMTP; 29 Apr 2003 10:59:23 +0100 Received: from intranet.eselx.ipl.pt ([193.137.237.149] helo=acad_rute.eselx.ipl.pt) by matrix.eselx.ipl.pt with esmtp (Exim 3.35 #1 (Debian)) id 19ARt5-0003We-00; Tue, 29 Apr 2003 10:58:59 +0100 Message-Id: <5.0.2.1.0.20030429101227.00a4d490@mail.eselx.ipl.pt> X-Sender: rutes@mail.eselx.ipl.pt X-Mailer: QUALCOMM Windows Eudora Version 5.0.2 Date: Tue, 29 Apr 2003 10:48:41 +0100 To: Rajesh Kumar Mallah From: rute solipa Subject: Re: help query Cc: pgsql-sql@postgresql.org In-Reply-To: References: <3EAD4E78.80204@eselx.ipl.pt> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Spam-Status: No, hits=-30.4 required=5.0 tests=BAYES_10,EMAIL_ATTRIBUTION,IN_REP_TO,NO_DNS_FOR_FROM, QUOTED_EMAIL_TEXT,REFERENCES,REPLY_WITH_QUOTES 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/423 X-Sequence-Number: 13124 hi everyone, does anyone can help me with this query, i need to now if it's a possible query and where do i put the join clause. kind regards, rute At 21:26 28-04-2003 +0530, you wrote: >Hmm as far i remember its the thrid of its kind >in past one month :) > >dealing with oracle (+) join syntax :( > >On Mon, 28 Apr 2003, rute solipa wrote: > > > hi everyone, > > > > i've got this oracle query, and i need it to put it to work in potgresql > > platform, i think the right outer join it will do just fine, but i don't > > now where to put , can anyone help me: > > > > select id_mensagem, ds_description, e_mail, > > to_char(date,'DD/MM/YY - HH24:MI') as Date, assunto, respondidas, > > mensagem, mensagens.id_resposta > > from (select id_mensagem, ds_description, e_mail, date, assunto, > > mensagem, id_resposta > > from tb_mensagens_monitores > > where tb_mensagens_monitores.id_resposta is null) mensagens, > > (select id_resposta, count(id_mensagem) as respondidas > > from tb_mensagens_monitores group by id_resposta) as respostas > > where mensagens.id_mensagem = respostas.id_resposta(+) > > order by date > > > > kind regards, > > > > rute > > > > > > ---------------------------(end of broadcast)--------------------------- > > TIP 6: Have you searched our list archives? > > > > http://archives.postgresql.org > >