ORDER BY Date will include the year, so 01/JAN/1940 will always appear
before 02/DEC/1999 even though on 01/DEC/2000 it is only one day to the
second date but 31 days to the first.  That is why I need the datecompare
function (although it is slightly more complicated than just
datecompare(date, now()) it is actually

#abs(datediff("D", createdate(year(now()), month(date), day(date)), now()))#

but that isn't the point.

----- Original Message -----
From: "DeVoil, Nick" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: "'James Smith'" <[EMAIL PROTECTED]>
Sent: Tuesday, September 05, 2000 2:23 PM
Subject: RE: SQL ORDER BY Problem


> Let's hope this one gets there a bit quicker..
>
> James
> What's wrong with SELECT Date FROM Dates ORDER BY Date?
> (You're not really using the name Date I guess)
> Nick
>
>
> **********************************************************************
> Information in this email is confidential and may be privileged.
> It is intended for the addressee only. If you have received it in error,
> please notify the sender immediately and delete it from your system.
> You should not otherwise copy it, retransmit it or use or disclose its
> contents to anyone.
> Thank you for your co-operation.
> **********************************************************************
> --------------------------------------------------------------------------
----
> Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
> To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.

------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to