Hi all,
I am trying to run a query that will QUERY a table by selecting the current date and time. The fields in my table as follows:
"1"Backup_Name
"2"Week
"3"Day
"4"Start_Time
"5"Start_Date
"6"Finish_Time
"7"Finish_Date
eg:
"1" "2" "3" "4" "5" "6" "7"
SQL BACKUP 1 Tuesday 16:00 20/01/2003 12:00 21/12/2003
The table will be completed spanning over a year.
The query needs to be able to take current date and time and query between start time/date and finish time/date to return the the correct day and week speccified.
If query done on 01:00hrs on 21/01/2002 the query ould return week 1 Tuesday SQL backup.
Hope someone can help. This one is doing my head in.
I am trying to run a query that will QUERY a table by selecting the current date and time. The fields in my table as follows:
"1"Backup_Name
"2"Week
"3"Day
"4"Start_Time
"5"Start_Date
"6"Finish_Time
"7"Finish_Date
eg:
"1" "2" "3" "4" "5" "6" "7"
SQL BACKUP 1 Tuesday 16:00 20/01/2003 12:00 21/12/2003
The table will be completed spanning over a year.
The query needs to be able to take current date and time and query between start time/date and finish time/date to return the the correct day and week speccified.
If query done on 01:00hrs on 21/01/2002 the query ould return week 1 Tuesday SQL backup.
Hope someone can help. This one is doing my head in.