ggggus
Programmer
- Jul 5, 2003
- 114
I have a table that has a small alpha-numeric varchar(5) field in it. Field is used as a key for some diagrams. Some of the diagrams are labeled with numbers only (ex. 1,2,3,4...) and others are labled with alpha numerics (ex. A1,A2,B1,B2...).
I'm running into a problem sorting the field properly. When I sort a query that contains only numbers I get results like the following:
If the field is specified as an intiger is sorts properly.
How do I get this field to sort proplery for both numbers and alpha-numerics? Current language for the field is latin1, will changing this to another language type correct this? and if so what language?
***************************************
J. Jacobs
I'm running into a problem sorting the field properly. When I sort a query that contains only numbers I get results like the following:
Code:
1
11
12
13
2
3
Code:
1
2
3
11
12
13
How do I get this field to sort proplery for both numbers and alpha-numerics? Current language for the field is latin1, will changing this to another language type correct this? and if so what language?
***************************************
J. Jacobs