M
MikeR
My table looks like this. All text fields, except 'RESOLVED' which is Y/N.
NAME ZONE REGION REP RESOLVED QSLR
Jones 21 SE 41 Y abc
Smith 21 SE 41 axy
Ivy 21 MW 41 z
Martin 24 SE 40 o
Barnes 24 SE 40 cc
Doe 21 SE 43 np
Bass 21 SE 44
The query needs to return rows where:
1. 'Resolved' is N (or not Y)
2. QSLR is not empty (NULL or space)
3. If a row with 'Resolved' = N matches (on 'Zone', 'Region', and 'REP') with one
where 'Resolved' = Y , exclude that row.
4. If a row with 'Resolved' = N matches (on 'Zone', 'Region', and 'REP') with one
where 'Resolved' = N , return only 1 row.
Should return rows for Ivy, Martin and Doe
The first 2 I can do. The last 2 have me buffaloed.
TIA, Mike
NAME ZONE REGION REP RESOLVED QSLR
Jones 21 SE 41 Y abc
Smith 21 SE 41 axy
Ivy 21 MW 41 z
Martin 24 SE 40 o
Barnes 24 SE 40 cc
Doe 21 SE 43 np
Bass 21 SE 44
The query needs to return rows where:
1. 'Resolved' is N (or not Y)
2. QSLR is not empty (NULL or space)
3. If a row with 'Resolved' = N matches (on 'Zone', 'Region', and 'REP') with one
where 'Resolved' = Y , exclude that row.
4. If a row with 'Resolved' = N matches (on 'Zone', 'Region', and 'REP') with one
where 'Resolved' = N , return only 1 row.
Should return rows for Ivy, Martin and Doe
The first 2 I can do. The last 2 have me buffaloed.
TIA, Mike