D
DaveP
HI,
I'm new to nested queries and having trouble.
I'm trying to identify all members that have BOTH an 'A'
and a ('D'OR 'P') for a particular Drug
Table Name: Claims
Fields
Member Status Drug
John A Aspirin
John D Aspirin
Steve P Celebrex
Steve A Luvox
Sarah A Fosamax
Sarah P Fosamax
So in this example, I want it to return - John Aspirin
AND Sarah Fosamax- since they have BOTh and A and D (or
P) for the same drug.
I'm new to nested queries and having trouble.
I'm trying to identify all members that have BOTH an 'A'
and a ('D'OR 'P') for a particular Drug
Table Name: Claims
Fields
Member Status Drug
John A Aspirin
John D Aspirin
Steve P Celebrex
Steve A Luvox
Sarah A Fosamax
Sarah P Fosamax
So in this example, I want it to return - John Aspirin
AND Sarah Fosamax- since they have BOTh and A and D (or
P) for the same drug.