Why lower's not accept an AS declaration ? - Mailing list pgsql-general

From Hervé Piedvache
Subject Why lower's not accept an AS declaration ?
Date
Msg-id 200308181020.13759.herve@elma.fr
Whole thread Raw
Responses Re: Why lower's not accept an AS declaration ?
Re: Why lower's not accept an AS declaration ?
List pgsql-general
Hi,

May be my question is stupid ... but I'm a little suprised :

SELECT id_letter as letter from my_table;

letter
-----
B
C
a
A

SELECT id_letter as letter from my_table order by letter;

letter
-----
A
B
C
a

SELECT id_letter as letter from my_table order by lower(letter);

ERROR:  Attribute "letter" not found

You can imagine my test is simple, in practise it's not the reallity of my
original request ... but this example is just to show that lower() function
does not accept an AS declaration ... is it normal ?

Thanks for your answers ...

Regards,
--
Hervé Piedvache

Elma Ingénierie Informatique
6 rue du Faubourg Saint-Honoré
F-75008 - Paris - France
Pho. 33-144949901
Fax. 33-144949902


pgsql-general by date:

Previous
From: Scott Lamb
Date:
Subject: Re: Need feedback on new feature (\for)
Next
From: Johann Uhrmann
Date:
Subject: Performance with different index types