In a ATM application which involves a joint account holders who use the same account and they access their accounts at different places and they find out their balances and both will draw the money based on the availability. Suppose there is some Rs.10000 in the account and A draws Rs.5000 and B draws Rs.6000 and the ATM gives for both the people. How to avoid this? If possible give some sample code for locking the db2 table.