Hi
I have a requirement where I need to fetch the latest record persisted by 'SYSTEM' even it has been modified by multiple users. Request you to help me in building that query.
Case-1 data:
uniqueId-111 --> This record has been inserted by user-SYSTEM twice(records-1,4) and the same has been updated by multiple users(records-2,3,5). Now i need a query when i pass Id=111 and Type=I i should get the latest record inserted by 'SYSTEM' i.e record-4
Case-2 data:
uniqueId-222 --> This record has been inserted by user-SYSTEM once(records-6) and the same has been updated by multiple users(records-7,9).When i pass Id=222 and Type=I i should get the latest record inserted by 'SYSTEM' i.e record-6
Enclosed the image of the test data that I have.
