Re: query with =ALL

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: query with =ALL
Дата
Msg-id 5688.1087242100@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: query with =ALL  ("Jaime Casanova" <el_vigia_ec@hotmail.com>)
Ответы Re: query with =ALL
Список pgsql-sql
"Jaime Casanova" <el_vigia_ec@hotmail.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


В списке pgsql-sql по дате отправления:

Предыдущее
От: "Subbiah, Stalin"
Дата:
Сообщение: Scalar subqueries
Следующее
От: "Jaime Casanova"
Дата:
Сообщение: Re: query with =ALL