"Robert B. Easter" <[EMAIL PROTECTED]> writes: > -- this crashes > select a, (SELECT b FROM y WHERE y.b = x.a + 1) AS b > FROM x WHERE a IN (SELECT b FROM y) > GROUP BY a,b > HAVING a IN (SELECT b FROM y WHERE b > 1); Fixed. 'Twas another case of trying to close a subplan twice ... regards, tom lane
- Re: Sv: [SQL] how to build this query ??? Please help !!! Jens Hartwig
- Re: Sv: [SQL] how to build this query ??? Please hel... Tod McQuillin
- Re: Sv: [SQL] how to build this query ??? Please... Tom Lane
- Re: Sv: [SQL] how to build this query ??? Please... Jens Hartwig
- Re: Sv: [SQL] how to build this query ??? Pl... Tom Lane
- Re: Sv: [SQL] how to build this query ??... Jens Hartwig
- Re: Sv: [SQL] how to build this que... Tod McQuillin
- Re: Sv: [SQL] how to build this que... Robert B. Easter
- Re: Sv: [SQL] how to build this que... Robert B. Easter
- Re: Sv: [SQL] how to build this que... Tom Lane
- Tom Lane