Problem 3 Consider a database with a Table A(x) containing integers. Adam runs a
ID: 3736441 • Letter: P
Question
Problem 3 Consider a database with a Table A(x) containing integers. Adam runs a query (that is a transaction): Select sum(x) from A; Commit; Brandon consider a sequence of inserts (this is also a transaction): Insert into A values (10); Insert into A values (20); Insert into A values (30) Commit; Christopher consider a sequence of deletes (this is also a transaction): Delete from A where x-30; Delete from A where x-20; Commit; At the beginning, before executing any transaction, the sum of the integers in A is 1000 and none of them are 10, 20, or 30. Ifall ransactions (under isolation level READ COMMITTED) run at about the same time, what are the possible sums that can be produced by Adam's transaction?Explanation / Answer
possible sums that can be produced by Adam's transaction
So possible values of sum are 1000,1010 or 1060
Do ask if any doubt. Please upvote.
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.