X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 3A15AD1B527 for ; Sat, 25 Oct 2003 02:14:07 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 23685-01 for ; Fri, 24 Oct 2003 23:13:38 -0300 (ADT) Received: from joeconway.com (66-146-172-86.skyriver.net [66.146.172.86]) by svr1.postgresql.org (Postfix) with ESMTP id DFB6FD1B4EB for ; Fri, 24 Oct 2003 23:13:33 -0300 (ADT) Received: from [192.168.5.3] (account jconway HELO joeconway.com) by joeconway.com (CommuniGate Pro SMTP 4.1.5) with ESMTP-TLS id 446399; Fri, 24 Oct 2003 19:12:21 -0700 Message-ID: <3F99DC33.3010504@joeconway.com> Date: Fri, 24 Oct 2003 19:13:07 -0700 From: Joe Conway User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3) Gecko/20030312 X-Accept-Language: en-us, en MIME-Version: 1.0 To: David B Cc: pgsql-sql@postgresql.org Subject: Re: Referring to derived column name in a RECORD References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/331 X-Sequence-Number: 15731 David B wrote: > SELECT to_char( created_timestamp, 'DDMMYY' ) AS "joined_on", > r_app.joined_on ; -- HOW do I reference this value?...this does not work Try either making that first line: ... AS joined_on, (i.e. without the double quotes) or make the second one: r_app."joined_on"; (i.e. with double quotes) HTH, Joe