Can someone tell me how to do the following?
I have a group of records where there is a header table and a detail table. The header and detail share a common ID, of course. The detail table has a status field where it can be ok or deny. I want to find all records in the header where all members in the detail are deny. Here is an example...
idnum linenum status
1 0 ok
1 1 ok
1 2 deny
2 1 ok
2 2 ok
3 1 deny
3 2 deny
3 3 deny
4 0 ok
4 1 deny
4 2 ok
5 3 deny
5 4 deny
5 5 deny
As you can see, I would want IDNum 3 and 5 in this case.
Let me know if you need any more info.
Thanks ahead of time for any help.
Harv
I have a group of records where there is a header table and a detail table. The header and detail share a common ID, of course. The detail table has a status field where it can be ok or deny. I want to find all records in the header where all members in the detail are deny. Here is an example...
idnum linenum status
1 0 ok
1 1 ok
1 2 deny
2 1 ok
2 2 ok
3 1 deny
3 2 deny
3 3 deny
4 0 ok
4 1 deny
4 2 ok
5 3 deny
5 4 deny
5 5 deny
As you can see, I would want IDNum 3 and 5 in this case.
Let me know if you need any more info.
Thanks ahead of time for any help.
Harv