Hi
I want to order by a field - that contains a number. But the DB field is a varchar insted of an intiger.
This is my sql
the result is
it should be
Does anyone know how to sort by number?
Thanks
LHG
I want to order by a field - that contains a number. But the DB field is a varchar insted of an intiger.
This is my sql
Code:
select field1, field2
from table
order by field1
the result is
field1 field1
1 the first
10 number ten
2 the secound.
it should be
field1 field1
1 the first
2 the secound.
10 number ten
Does anyone know how to sort by number?
Thanks
LHG