Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 9DB2F9FBD4E for ; Thu, 22 Mar 2007 17:29:29 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-new, port 10024) with ESMTP id 86159-04 for ; Thu, 22 Mar 2007 17:29:15 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from correio2.docasdoporto.com.br (8.144.199.200.docasdoporto.com.br [200.199.144.8]) by postgresql.org (Postfix) with ESMTP id 4ABB99FBD3D for ; Thu, 22 Mar 2007 17:29:19 -0300 (ADT) Received: from [201.30.172.2] (account ezequias@fastcon.com.br HELO [192.168.0.110]) by correio2.docasdoporto.com.br (CommuniGate Pro SMTP 4.1.8) with ESMTP-TLS id 47129944; Thu, 22 Mar 2007 17:46:49 -0300 Message-ID: <4602E67D.6080001@fastcon.com.br> Date: Thu, 22 Mar 2007 17:26:37 -0300 From: "Ezequias R. da Rocha" User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 To: Joe CC: pgsql-sql@postgresql.org Subject: Re: Dummy question References: <4602DC7A.60506@fastcon.com.br> <1174594675.95579.1.camel@pampa> In-Reply-To: <1174594675.95579.1.camel@pampa> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200703/304 X-Sequence-Number: 27942 Thank you very much Joe. Ezequias Joe escreveu: > Hi Ezequias, > > On Thu, 2007-03-22 at 16:43 -0300, Ezequias R. da Rocha wrote: > >> I must use a select * from some table but i must do a join and it must >> be in the were clause. >> >> I can't put select * from tabel1 as tb1, table2 as tb2 >> where tb2.id = 2 >> and tb1.fk_tb2ID = tb2.id >> > > Try > > select tb1.* from tabel1 as tb1, table2 as tb2 > where tb2.id = 2 > and tb1.fk_tb2ID = tb2.id; > > Joe > > > ---------------------------(end of broadcast)--------------------------- > TIP 1: if posting/reading through Usenet, please send an appropriate > subscribe-nomail command to majordomo@postgresql.org so that your > message can get through to the mailing list cleanly > > -- Atenciosamente Ezequias Rodrigues da Rocha