A
Alan
Hi,
I'm hoping that someone will be able to help me with a problem I'm having
with queries.
At the moment I have 3 tables as follows:
Table 1:
ID
MasterList:
Overall Status:
Table 2:
Machine
Status1
Table 3
Machine
Status1
My Query lists all machines in the Master List and then Status 1 from both
table 2 and 3. Thefore I get results as follows:
Machine: Table2.Status1 Table3.Status1
A OK Unknown
B Unknown OK
C OK OK
D Unknown Unknown
What I want to be able to do is have the query check whether either
Table2.Status1 has OK or Table3.Status1 has OK for each of the machines and
if either of them do contain ok then to put OK into the overall status in
table1. Therefore I would get the following result:
Machine: Table2.Status1 Table3.Status1 Table1.Overall
Status
A OK Unknown
OK
B Unknown OK
OK
C OK OK
OK
D Unknown Unknown
Unknown
Is this possible???
Thanks in advance for any help
Regards
Alan
I'm hoping that someone will be able to help me with a problem I'm having
with queries.
At the moment I have 3 tables as follows:
Table 1:
ID
MasterList:
Overall Status:
Table 2:
Machine
Status1
Table 3
Machine
Status1
My Query lists all machines in the Master List and then Status 1 from both
table 2 and 3. Thefore I get results as follows:
Machine: Table2.Status1 Table3.Status1
A OK Unknown
B Unknown OK
C OK OK
D Unknown Unknown
What I want to be able to do is have the query check whether either
Table2.Status1 has OK or Table3.Status1 has OK for each of the machines and
if either of them do contain ok then to put OK into the overall status in
table1. Therefore I would get the following result:
Machine: Table2.Status1 Table3.Status1 Table1.Overall
Status
A OK Unknown
OK
B Unknown OK
OK
C OK OK
OK
D Unknown Unknown
Unknown
Is this possible???
Thanks in advance for any help
Regards
Alan