You could add the mySql way too,


SELECT DISTINCT CarMake
FROM directory_CarWeek
WHERE Available = 1 AND ExpiryDate > now()
ORDER BY CarMake


I imagine most if not all database systems have a function for the
current date and time, it's probably now() in most of them.

-----Original Message-----
From: Paul Vernon [mailto:[EMAIL PROTECTED]
Sent: 29 October 2003 03:36
To: CF-Talk
Subject: RE: Now then


The CF way


SELECT DISTINCT CarMake
FROM directory_CarWeek
WHERE Available = 1 AND ExpiryDate > #CreateODBCDateTime(Now())#
ORDER BY CarMake


The SQL Server way


SELECT DISTINCT CarMake
FROM directory_CarWeek
WHERE Available = 1 AND ExpiryDate > GetDate()
ORDER BY CarMake


Yours


Paul

  _____  


[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to