Treating result of subselect as row - Mailing list pgsql-sql

From Ottó Havasvölgyi
Subject Treating result of subselect as row
Date
Msg-id 34608c0c0711060209h6056b717x4ce746ab342868c9@mail.gmail.com
Whole thread Raw
List 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 by date:

Previous
From: Gregory Stark
Date:
Subject: Re: Returning the total number of rows as a separate column when using limit
Next
From: Keith Carr
Date:
Subject: Bitemporal - problem with correalated subquery?