Received: from sss.pgh.pa.us ([192.204.191.242]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f6VFH8f01603 for ; Tue, 31 Jul 2001 11:17:08 -0400 (EDT) (envelope-from tgl@sss.pgh.pa.us) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.11.4/8.11.4) with ESMTP id f6VFGiC10908; Tue, 31 Jul 2001 11:16:44 -0400 (EDT) To: Gary Stainburn cc: pgsql-sql@postgresql.org Subject: Re: union in subselect? In-reply-to: <01073115421207.11590@gary.ringways.co.uk> References: <01073115421207.11590@gary.ringways.co.uk> Comments: In-reply-to Gary Stainburn message dated "Tue, 31 Jul 2001 15:42:12 +0100" Date: Tue, 31 Jul 2001 11:16:43 -0400 Message-ID: <10905.996592603@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200107/390 X-Sequence-Number: 4204 Gary Stainburn writes: > select * from actions where cposn in (select posn from positions where pholder > = 81 union select 'NEC' as posn from members where mnec = true and mid = 81); > gives me: > ERROR: parser: parse error at or near "union" Update to PG 7.1. regards, tom lane