SQL - Transactions and Data Integrity
Consider this SQL transaction:
What will be the final effect on the database?
BEGIN TRANSACTION; UPDATE inventory SET quantity = quantity - 5 WHERE product_id = 10; UPDATE sales SET total = total + 5 WHERE sale_id = 3; ROLLBACK;
What will be the final effect on the database?
