X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 334089DC848 for ; Sun, 15 Jan 2006 00:28:55 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 20434-04 for ; Sun, 15 Jan 2006 00:28:52 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 7CC2D9DC82B for ; Sun, 15 Jan 2006 00:28:51 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id k0F4SooP005329; Sat, 14 Jan 2006 23:28:50 -0500 (EST) To: =?ISO-8859-1?Q?Alexandre_Gon=E7alves_Jacarand=E1?= cc: pgsql Subject: Re: select and as doubt In-reply-to: <43C9C7B5.5070707@yahoo.com.br> References: <43C9C7B5.5070707@yahoo.com.br> Comments: In-reply-to =?ISO-8859-1?Q?Alexandre_Gon=E7alves_Jacarand=E1?= message dated "Sun, 15 Jan 2006 01:55:33 -0200" Date: Sat, 14 Jan 2006 23:28:50 -0500 Message-ID: <5328.1137299330@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.088 required=5 tests=[AWL=0.088] X-Spam-Score: 0.088 X-Spam-Level: X-Archive-Number: 200601/75 X-Sequence-Number: 23864 =?ISO-8859-1?Q?Alexandre_Gon=E7alves_Jacarand=E1?= writes: > It's possible to make an SELECT inside an AS clause ? No. You could try building the query as a string. regards, tom lane