Hi,
Data in a table looks like this:
PERNO FIELDNAME OLDVALUE NEWVALUE CHANGEDDATE
10 SRO L/ADM L/ADM/SRO 10/2/2019
I want to return all PERNOs where:
- changeddate < '8/1/2018' and newvalue = 'L/ADM/SRO' and fieldname = 'UNIT'
but yet that same PERNO does not have another record where...
- changeddate < '8/2/2018' and oldvalue = 'L/ADM/SRO' and fieldname = 'UNIT'
Your help is greatly appreciated. Thanks so much.