S
Simon
Hi,
I have a table "Training_Session", two attributes in the table, are "date"
and "finish_time". The date represents the date the training session is
held, the finish time is the time that the training_session is completed.
They are both Date/Time Fields, the key thing to note is that "date" hasn't
had its time set, only the actual date itself e.g 2/5/2005 is set. Also
finish_time only has its time values set e.g 02:00:00 PM.
What i'm trying to do is write a query that displays all Training_Sessions
that are before the system date. So I need to some how write something that
checks that the date is less than or equal to the system date, and if its
equal well then it needs to check that the "finish_time" is less than the
system time.
Here is an example of my "Training_Session" table. assume system date =
24/9/2005 11:48:00 AM
Session_id Date finish_time
S0001 24/9/2005 11:49:00 AM
S0002 24/9/2005 11:47:00 AM
S0003 4/1/2005 02:00:00 PM
So the query should return S0002 and S0003 because the "date" and
"finish_time" is less than the system date.
Your help is urgently required and much appreciated.
Simon
I have a table "Training_Session", two attributes in the table, are "date"
and "finish_time". The date represents the date the training session is
held, the finish time is the time that the training_session is completed.
They are both Date/Time Fields, the key thing to note is that "date" hasn't
had its time set, only the actual date itself e.g 2/5/2005 is set. Also
finish_time only has its time values set e.g 02:00:00 PM.
What i'm trying to do is write a query that displays all Training_Sessions
that are before the system date. So I need to some how write something that
checks that the date is less than or equal to the system date, and if its
equal well then it needs to check that the "finish_time" is less than the
system time.
Here is an example of my "Training_Session" table. assume system date =
24/9/2005 11:48:00 AM
Session_id Date finish_time
S0001 24/9/2005 11:49:00 AM
S0002 24/9/2005 11:47:00 AM
S0003 4/1/2005 02:00:00 PM
So the query should return S0002 and S0003 because the "date" and
"finish_time" is less than the system date.
Your help is urgently required and much appreciated.
Simon