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

Report Studio Sorting

Status
Not open for further replies.

UcfMike

IS-IT--Management
Mar 29, 2007
184
US
I have a column that for testing purposes contains two values.

B13
B1000

If I sort Ascending on this column the result is:

B1000
B13

Why isn't report studio sorting this as:

B13
B1000

 
Because its a string, not a number, and '0' comes before '3' in the collating sequence. If you want to sort numerically you'll need to convert the numeric substring to a number and sort on the result...something like to_number(substr([yourcolumn],2))
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top