Re: query with =ALL

Поиск
Список
Период
Сортировка
От Jaime Casanova
Тема Re: query with =ALL
Дата
Msg-id BAY8-F43IO1PH5phq9d0003307c@hotmail.com
обсуждение исходный текст
Ответ на query with =ALL  ("Jaime Casanova" <el_vigia_ec@hotmail.com>)
Ответы Re: query with =ALL
Список pgsql-sql
Hi all,

> > 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"?

Not really becuase ANY has the same efect that IN and what i want is all the 
results that are equal in all the rows in any of the cur_paralelo values. 
But must be in all the cur_paralelo or nothing.

thanx in advance,

Jaime Casanova

_________________________________________________________________
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. 
http://join.msn.com/?page=features/virus



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: query with =ALL
Следующее
От: Tom Lane
Дата:
Сообщение: Re: query with =ALL