C
CR
Hi,
I have the following tables:
1. Location
2. Server
3. Results
Table Location contains info on locations. Table Server contains info
on what servers there are, it links to location via LocationID.
Results contains info on the results of backups of servers and links
to servers via ServerID.
Now when a server backs up it post into the database Results table the
status of backup with the following fields:
ServerID, Status, Date. The date field is defaulted to Now() so it
records when the post into the database occurred in format dd/mm/yyyy
hh:mm:ss.
So I want to query all the results for a user specified date but I
also want it to list all the servers that didn't post records for that
day.
So if Location A had Servers 1,2 and 3 and location B had servers 3,4
and 6, and on the 01/01/2008 only servers 2 and 4 posted results I
would get something like:
Server Status Date
1
2 Passed 01/01/2008
3
4 Passed 01/01/2008
5
6
I don't mind have two seperate queries for this but at present I can't
get it to only use the date part of the field for a user prompted date
and for it to list those servers that have no entry for a given date.
I know that I will have to somehow deduct from the full list of
servers those that posted a result on a given date and then list whats
left but I have no idea how to do it.
Any suggestions most gratefull
I have the following tables:
1. Location
2. Server
3. Results
Table Location contains info on locations. Table Server contains info
on what servers there are, it links to location via LocationID.
Results contains info on the results of backups of servers and links
to servers via ServerID.
Now when a server backs up it post into the database Results table the
status of backup with the following fields:
ServerID, Status, Date. The date field is defaulted to Now() so it
records when the post into the database occurred in format dd/mm/yyyy
hh:mm:ss.
So I want to query all the results for a user specified date but I
also want it to list all the servers that didn't post records for that
day.
So if Location A had Servers 1,2 and 3 and location B had servers 3,4
and 6, and on the 01/01/2008 only servers 2 and 4 posted results I
would get something like:
Server Status Date
1
2 Passed 01/01/2008
3
4 Passed 01/01/2008
5
6
I don't mind have two seperate queries for this but at present I can't
get it to only use the date part of the field for a user prompted date
and for it to list those servers that have no entry for a given date.
I know that I will have to somehow deduct from the full list of
servers those that posted a result on a given date and then list whats
left but I have no idea how to do it.
Any suggestions most gratefull