ecojohnson
Programmer
I use the following logic for one of my queries:
SELECT Number
FROM DB
ORDER BY Number ASC
However, if my numbers are 1-10, it comes out in the following order:
1,10,2,3,4,5,6,7,8,9
Is there a simple way to make this order go logically (i.e. 1,2,3,4,5,6,7,8,9,10). I'm sure I can come up with a way to do it (using a LEFT function or something), but I wasn't sure if there was some quick and easy way to do so.
I apologize if this is an extemely simple question, buy my SQL book does not touch on this at all. Thanks.
SELECT Number
FROM DB
ORDER BY Number ASC
However, if my numbers are 1-10, it comes out in the following order:
1,10,2,3,4,5,6,7,8,9
Is there a simple way to make this order go logically (i.e. 1,2,3,4,5,6,7,8,9,10). I'm sure I can come up with a way to do it (using a LEFT function or something), but I wasn't sure if there was some quick and easy way to do so.
I apologize if this is an extemely simple question, buy my SQL book does not touch on this at all. Thanks.