Hi!
I have three fields in the file: ID; PRODUCT, TYPE.
H; P -are appropriate products
F; M -are inappropriate products
A; I -appropriate TYPE
N; T -inappropriate Type
Let’s say there are several records with the same ID and different products and Types. As long as a member has correct Product (H; P) and only one record meets Type criteria (A; I) I do NOT mark down none of the records with the same ID
For example –Not a subject for mark down:
ID Product Type Mark down
*******************************
M1 F N
M1 F T
M1 H A
Not a subject for mark down either:
ID Product Type Mark down
*******************************
M1 F N
M1 F T
M1 H T
However if one record is “good” and the rest of the records (with inappropriate Product F; M) have appropriate TYPE (A; I) I need to mark down ONLY record with appropriate PRODUCT & TYPE
For example – this is a subject for mark down with “S”:
ID Product Type Mark down
*******************************
M1 F A
M1 F I
M1 H A S
Could you help me with this query?
I have three fields in the file: ID; PRODUCT, TYPE.
H; P -are appropriate products
F; M -are inappropriate products
A; I -appropriate TYPE
N; T -inappropriate Type
Let’s say there are several records with the same ID and different products and Types. As long as a member has correct Product (H; P) and only one record meets Type criteria (A; I) I do NOT mark down none of the records with the same ID
For example –Not a subject for mark down:
ID Product Type Mark down
*******************************
M1 F N
M1 F T
M1 H A
Not a subject for mark down either:
ID Product Type Mark down
*******************************
M1 F N
M1 F T
M1 H T
However if one record is “good” and the rest of the records (with inappropriate Product F; M) have appropriate TYPE (A; I) I need to mark down ONLY record with appropriate PRODUCT & TYPE
For example – this is a subject for mark down with “S”:
ID Product Type Mark down
*******************************
M1 F A
M1 F I
M1 H A S
Could you help me with this query?