Treating result of subselect as row

Поиск
Список
Период
Сортировка
От Ottó Havasvölgyi
Тема Treating result of subselect as row
Дата
Msg-id 34608c0c0711060209h6056b717x4ce746ab342868c9@mail.gmail.com
обсуждение исходный текст
Список pgsql-sql
Hi,
 
If I have a subselect that returns one row, then how can I use this in expressions that expects row constructors in the operands, like OVERLAPS or IN ?
 
SELECT (subselect1) OVEPLAPS (subselect2)   -- both subselect returns one row and two columns
 
OR:
 
SELECT (SubselectWithOneRow) IN (subselect2)   -- but here subselect2 may return many rows, but column counts are equal
 
I tried these in 8.2 without success.
 
Thanks,
Otto

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

Предыдущее
От: Gregory Stark
Дата:
Сообщение: Re: Returning the total number of rows as a separate column when using limit
Следующее
От: Keith Carr
Дата:
Сообщение: Bitemporal - problem with correalated subquery?