Re: Alias name from subquery - Mailing list pgsql-general

From Raymond O'Donnell
Subject Re: Alias name from subquery
Date
Msg-id 48E23869.7070403@iol.ie
Whole thread Raw
In response to Alias name from subquery  (Felix Homann <fexpop@onlinehome.de>)
Responses Re: Alias name from subquery  (Felix Homann <fexpop@onlinehome.de>)
List pgsql-general
On 30/09/2008 14:21, Felix Homann wrote:


> I would like to set an alias name for a column from a subquery, i.e.
> something like this:
>
> SELECT entry AS (SELECT name from colnames WHERE id=1) from entries ;


select entry from (select name from colnames where id = 1) as
entry_with_different_name;

...maybe?

Ray.

------------------------------------------------------------------
Raymond O'Donnell, Director of Music, Galway Cathedral, Ireland
rod@iol.ie
Galway Cathedral Recitals: http://www.galwaycathedral.org/recitals
------------------------------------------------------------------

pgsql-general by date:

Previous
From: Felix Homann
Date:
Subject: Re: Alias name from subquery
Next
From: Felix Homann
Date:
Subject: Re: Alias name from subquery