Final answer:
Due to the lack of concurrent control in the XYZ store's multi-user database system, the recorded balance for the customer after processing three simultaneous transactions was HK$100, which is incorrect. The actual balance, after considering all transactions in sequence, should be HK$50.
Step-by-step explanation:
A multi-user database system used in the XYZ store's customer payment operations is facing issues with concurrent transactions. Let's analyze the transactions that occurred simultaneously on a customer's record, which initially showed a balance due of HK$300.
- Payment of HK$300 (transaction i)
- Purchase on credit of HK$150 (transaction ii)
- Merchandise return (credit) of HK$100 (transaction iii)
With the transactions processed in the order of (i), (ii), and then (iii), and all reading the initial balance before any updates, the resultant balance after the last transaction is completed would erroneously be HK$100 due to the lack of concurrent control. This is because each transaction was updated based on the original balance without considering the impact of the others.
The correct balance, however, should consider all transactions: the payment would bring the balance to HK$0, the subsequent purchase would increase it to HK$150, and finally, the merchandise return would decrease it to HK$50. Therefore, the actual balance should be HK$50.