Re: join question

From: Jean-Luc Lachance <jllachan(at)nsd(dot)ca>
To: Frank Morton <fmorton(at)base2inc(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: join question
Date: 2002-10-18 19:50:56
Message-ID: 3DB06620.39193D92@nsd.ca
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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
>

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Vivek Khera 2002-10-18 20:12:01 adding column with not null constraint
Previous Message Stephan Szabo 2002-10-18 19:31:09 Re: join question