Suppose you're making a transaction in which you need to transfer 100 dollars from account "X" (source account) to account "Y" (destination account). Assume that the balances of these accounts are 2000 dollars and 1000 dollars respectively, so operations can be executed. Place the following actions, which you need to take, in the correct order.
Introduction to transactions
Money transfer
Report a typo
Put the items in the correct order
reading item X
begin transaction
writing item Y
Y=Y+100
commit transaction
X=X-100
reading item Y
writing item X
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.