Re: join question

Поиск
Список
Период
Сортировка
От Jean-Luc Lachance
Тема Re: join question
Дата
Msg-id 3DB06620.39193D92@nsd.ca
обсуждение исходный текст
Ответ на Re: date  ("wishy wishy" <wishy66@hotmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Stephan Szabo
Дата:
Сообщение: Re: join question
Следующее
От: Vivek Khera
Дата:
Сообщение: adding column with not null constraint