Re: query with =ALL

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Jaime Casanova" <el_vigia_ec(at)hotmail(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: query with =ALL
Date: 2004-06-14 19:41:40
Message-ID: 5688.1087242100@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

"Jaime Casanova" <el_vigia_ec(at)hotmail(dot)com> writes:
> AND
> CPA.cur_paralelo = ALL (SELECT cur_paralelo FROM aca_t_curso ...)

Wait a second ... we are all overthinking the problem. The subselect
returns three *different* values. It is not possible for any
CPA.cur_paralelo values to be simultaneously equal to all three.
So this test certainly fails at every row of CPA.

Perhaps you meant "= ANY"?

regards, tom lane

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Jaime Casanova 2004-06-14 19:53:41 Re: query with =ALL
Previous Message Subbiah, Stalin 2004-06-14 19:38:44 Scalar subqueries