Complete the code to start a transaction.
BEGIN [1];To start a transaction in SQL, you use BEGIN TRANSACTION;.
Complete the code to create a savepoint named 'sp1'.
SAVEPOINT [1];Savepoints are named markers within a transaction. Here, sp1 is the savepoint name.
Fix the error in the code to rollback to the savepoint 'sp1'.
ROLLBACK TO [1];To rollback to a savepoint, use ROLLBACK TO sp1; where sp1 is the savepoint name.
Fill both blanks to release the savepoint named 'sp1' and then commit the transaction.
RELEASE [1]; COMMIT [2];
To remove a savepoint, use RELEASE sp1;. To finish the transaction, use COMMIT TRANSACTION;.
Fill all three blanks to start a transaction, create a savepoint named 'sp1', and rollback to it.
BEGIN [1]; SAVEPOINT [2]; ROLLBACK TO [3];
First, start the transaction with BEGIN TRANSACTION;. Then create a savepoint sp1. Finally, rollback to that savepoint with ROLLBACK TO sp1;.