Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.tools -> Re: Alias Column Names

Re: Alias Column Names

From: Stephan Schlecht <stephan_at_software7.de>
Date: 2000/05/18
Message-ID: <392424D8.4C4C2C9A@software7.de>#1/1

> I need to sort by a field that does not have a standard field name.
>
> There is a view that has been written as such.
> SELECT firstname as "First Name", lastname as "Last Name" FROM
> tablename;
>
> I want to select from that view and order by the last name field. Is it
> possible and if so how can I do it?

select * from viewname order by "Last Name";

or

select * from viewname order by 2;

Stephan Schlecht

--
Software 7 GmbH           
Regensburg          
http://www.software7.de
Received on Thu May 18 2000 - 00:00:00 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US