SQL - Transactions and Data Integrity
Identify the error in this SQL transaction code:
BEGIN TRANSACTION UPDATE products SET stock = stock - 1 WHERE id = 10 COMMIT;
BEGIN TRANSACTION UPDATE products SET stock = stock - 1 WHERE id = 10 COMMIT;
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions