If 2 users each have a disconnected dataset which lets say contains a set of customers which they add/amend and delete from then how is the update carried out on the server ?

I can't get my head around this problem with concurrent users and update anomolies.

TIA