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 problem

Status
Not open for further replies.

lauritz

Programmer
Aug 20, 2002
27
AU
Hi,

I am trying to sort my record set (ascending) by a character field that contains either decimal values or "N/A".

One subset has the following values:
-29.7
-239
-199

The record I want (lowest value) is -293, yet the -29.7 appears first. I can see why but can't find a different way of doing it.

My select statement currently is ;
SELECT * from engine order by format$( hoursRemaining, "00000.0; (00000.0)")

Any help gratefully appreciated.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top