Re: Dummy question - Mailing list pgsql-sql

From Joe
Subject Re: Dummy question
Date
Msg-id 1174594675.95579.1.camel@pampa
Whole thread Raw
In response to Dummy question  ("Ezequias R. da Rocha" <ezequias@fastcon.com.br>)
Responses Re: Dummy question  ("Ezequias R. da Rocha" <ezequias@fastcon.com.br>)
List pgsql-sql
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



pgsql-sql by date:

Previous
From: "Ezequias R. da Rocha"
Date:
Subject: Dummy question
Next
From: "Ezequias R. da Rocha"
Date:
Subject: Re: Dummy question