On Mon, 14 Jul 2003 09:19:09 +0100, "Adi" <admin.TakeThisOut@NOSPAMadigaskell.org>
wrote:
>Hi,
>
>I'm currently running a sql select statement on a date field which is
>ordered by the date field in ascending order. It worked fine for the 1st to
>the 9th of the month but when it output 10th, 11th, 12th etc. it put them
>before the 1st. So I was getting:
Is it a "real" date field in the d/b or just a text field with a
date in it ?
This is a classic sorting issue with a non-zero filled alpha sort
of alpha data being treated as numeric. The solution is often
to run an update to the datebase and zero fill the single
digit dates, then make sure the program that writes new records
does that in the future.
Bob<!-- ~MESSAGE_AFTER~ -->
>> Stay informed about: date ORDER BY