jackieflash
Vendor
This pertains to health insurance data.
I have two tables. One contains a members eligibility history (Eligibilty Table) and the other contains their visits to clinics, hospitals, etc ( Visits Table). I need to find a way to find if they are eligible for the visits.
The problem I am having is that some members could have more than one record for their eligibility. Thus for the member below there would be three records.
For eg. Member ID 123456 was eligible from :
Effective Date End Date
10/1/2000 6/1/2001
9/1/2001 12/1/2001
3/1/2002 present
Thus if member 123456 went to a hospital on 11/1/2000 and 7/1/2002 ( from the Visits table), how do I check against the eligibility table and see if he was eligible for that date of service.
My query only works when the member has only one eligibility record. How do I get it to search his other eligibility records to see if they match date of service.
The tables are joined by Member ID numbers.
I am trying to do this using QBE. If SQL would work better and anyboy has any suggestions, please let me know.
Thanks a lot,
Jackie Flash
I have two tables. One contains a members eligibility history (Eligibilty Table) and the other contains their visits to clinics, hospitals, etc ( Visits Table). I need to find a way to find if they are eligible for the visits.
The problem I am having is that some members could have more than one record for their eligibility. Thus for the member below there would be three records.
For eg. Member ID 123456 was eligible from :
Effective Date End Date
10/1/2000 6/1/2001
9/1/2001 12/1/2001
3/1/2002 present
Thus if member 123456 went to a hospital on 11/1/2000 and 7/1/2002 ( from the Visits table), how do I check against the eligibility table and see if he was eligible for that date of service.
My query only works when the member has only one eligibility record. How do I get it to search his other eligibility records to see if they match date of service.
The tables are joined by Member ID numbers.
I am trying to do this using QBE. If SQL would work better and anyboy has any suggestions, please let me know.
Thanks a lot,
Jackie Flash