Re: Referring to derived column name in a RECORD - Mailing list pgsql-sql

From Joe Conway
Subject Re: Referring to derived column name in a RECORD
Date
Msg-id 3F99DC33.3010504@joeconway.com
Whole thread Raw
In response to Referring to derived column name in a RECORD  ("David B" <postgresql@thegatelys.com>)
List pgsql-sql
David B wrote:
>   SELECT to_char( created_timestamp, 'DDMMYY' ) AS "joined_on",
<snip>
>     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



pgsql-sql by date:

Previous
From: "David B"
Date:
Subject: Referring to derived column name in a RECORD
Next
From: Michael Glaesmann
Date:
Subject: Re: problem with sql