SQL - Transactions and Data Integrity
Examine this transaction:
What is the issue with this sequence?
BEGIN TRANSACTION;
UPDATE inventory SET quantity = quantity - 5 WHERE product_id = 20;
COMMIT;
ROLLBACK;
What is the issue with this sequence?
