Hi,
A long time since I've asked for help but for some reason, this Query is racking my brain.
MY.DBF looks like this
PSRV, PSRVHOS, PLOCASOF, PLOCTO
3601 62619 01/01/2017 31/01/2017
3631 62619 01/01/2017 31/01/2017
35XD 62619 01/01/2017
35JY 62619 01/01/2017
3400 62620 01/02/2017 31/03/2017
3701 62620 01/02/2017 31/07/2017
3641 62620 01/03/2017 31/07/2017
3401 62620 01/03/2017 31/07/2017
35JY 62620 01/04/2017 31/07/2017
35XD 62620 01/04/2017 31/07/2017
3601 62621 01/02/2017 28/01/2017
3631 62621 01/02/2017 28/01/2017
35XD 62621 01/02/2017
35JY 62621 01/02/2017
etc.
I would need to find out the "distint psrvphos's" that have only the psrv=35XD and psrv=35JY <only them 2 left> with an empty(dlocto), so in this case, I would get as a result:
62619
62621
any help please?
thank you so much,
FOXUP!
A long time since I've asked for help but for some reason, this Query is racking my brain.
MY.DBF looks like this
PSRV, PSRVHOS, PLOCASOF, PLOCTO
3601 62619 01/01/2017 31/01/2017
3631 62619 01/01/2017 31/01/2017
35XD 62619 01/01/2017
35JY 62619 01/01/2017
3400 62620 01/02/2017 31/03/2017
3701 62620 01/02/2017 31/07/2017
3641 62620 01/03/2017 31/07/2017
3401 62620 01/03/2017 31/07/2017
35JY 62620 01/04/2017 31/07/2017
35XD 62620 01/04/2017 31/07/2017
3601 62621 01/02/2017 28/01/2017
3631 62621 01/02/2017 28/01/2017
35XD 62621 01/02/2017
35JY 62621 01/02/2017
etc.
I would need to find out the "distint psrvphos's" that have only the psrv=35XD and psrv=35JY <only them 2 left> with an empty(dlocto), so in this case, I would get as a result:
62619
62621
any help please?
thank you so much,
FOXUP!