Re: join question - Mailing list pgsql-sql

From Jean-Luc Lachance
Subject Re: join question
Date
Msg-id 3DB06620.39193D92@nsd.ca
Whole thread Raw
In response to Re: date  ("wishy wishy" <wishy66@hotmail.com>)
List pgsql-sql
I think you meant:

select profile.name
from profile,attribute
where ( profile.id = attribute.containerId) and ( profile.state =' 1020811' or ( attribute.name = 'marketsegment'
and attribute.value = '1020704');


> select profile.name from profile,attribute where
> ((profile.state='1020811') or ((attribute.name='marketsegment') and
> (attribute.value='1020704') and (profile.id=attribute.containerId)));
> 
> Why doesn't this last query return just one row?
> 
> TIA
>


pgsql-sql by date:

Previous
From: Stephan Szabo
Date:
Subject: Re: join question
Next
From: Vivek Khera
Date:
Subject: adding column with not null constraint