Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

"ORDER BY" question

Status
Not open for further replies.

Cantor

Programmer
Apr 27, 2000
28
CA
Hi,

Let suppose a single table NAMES

First_name VARCHAR2
Last_name VARCHAR2

Is it possible to do a query to show this table ordered by First_name first and, secondly, ordered by descending order of the Last_name in the same query?

thanks
 
[tt]select First_name
, Last_name
from NAMES
order
by First_name ascending
, Last_name descending[/tt]

so this gives you

Adam Sandler
Andy Richter
Bill Maher
Bret Hull
etc.


rudy



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top