Need to retrieve latest data whose status is 1 and then setting status 0 for the same using LockMode Pessimistic.
s