×

Good News Everybody!

The new search engine is LIVE!

Please report any problems to david (at) midrange.com.




Hi James

If by "numeric" value you mean the number without spaces, you can use this in SQL with the replace function -

values replace('1    2   3   4', ' ', '')

This replaces spaces with nothing. Multiple spaces become multiple nothings. This returns the value 1234.

Of course, you don't use the "values" keyword in the SELECT, right?

Regards
Vern

I have a PF with a fixed-length character string field that contains either digits (padded with spaces), or just spaces.

I want to SELECT DISTINCT on that column, and then order the result set by the *numeric* value of the field.

And I'm having trouble figuring out how to do that.

--
JHHL


This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2026 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.