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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sorting Problems...

Status
Not open for further replies.

stormtrooper

Programmer
Apr 2, 2001
266
CA
Hi. I have a number field in DB2 that has been converted from data type NUMBER to data type VARCHAR. Now when I do a sort ascending in CR7, it doesn't sort properly. I know that the problem is that it searches the first character and does a sort on that.

eg.) 1000 will come before 999 or 990 or 99, etc.

How could I get around this?

Thanks
 
Create a formula:

tonumber({field})

then sort on the formula field. Mike

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top