C
Chuck W
Hi,
I have a query with three fields: MRN which is an account number, Month and
another field called AMI which has values of either D or E. There are
instances where for a given month there will be two records that have the
same MRN and month but one will have D and the second will have an E
MRN Month AMI
1030 7/1/09 D
1030 7/1/09 E
1040 7/1/09 E
I want to write a query that will give me a count of all of the Ds and Es
for a given month but will exclude all records (such as the second one) where
there already is a D for the same MRN (1030). I don't want to exclude
records such as the third record where there is no D value for MRN=1040.
Can someone help?
Thanks,
I have a query with three fields: MRN which is an account number, Month and
another field called AMI which has values of either D or E. There are
instances where for a given month there will be two records that have the
same MRN and month but one will have D and the second will have an E
MRN Month AMI
1030 7/1/09 D
1030 7/1/09 E
1040 7/1/09 E
I want to write a query that will give me a count of all of the Ds and Es
for a given month but will exclude all records (such as the second one) where
there already is a D for the same MRN (1030). I don't want to exclude
records such as the third record where there is no D value for MRN=1040.
Can someone help?
Thanks,