Hi Ananth,
I case of a single updating the COMMIT statement will not show much effect. There will be some scenarios like Stock moving from Warehouse to some plant. In this kind of situations, the two tables have to be updated. So, once the stock values got updated in Plant then only values in Warehouse should be updated completely.
So now we update the warehouse table first and then Plant table. If Plant table got updated successfully then we write COMMIT so all tables modifications will be fixed, otherwise we can write ROLLBACK on warehouse table. So, changes in warehouse table will get reverted back.
Hope you can understand this.
Regards,
Vijay