0
0
DBMS Theoryknowledge~10 mins

Transaction states in DBMS Theory - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to start a transaction in SQL.

DBMS Theory
BEGIN [1];
Drag options to blanks, or click blank then click option'
ATRANSACTION
BCOMMIT
CROLLBACK
DSAVEPOINT
Attempts:
3 left
💡 Hint
Common Mistakes
Using COMMIT or ROLLBACK to start a transaction instead of BEGIN TRANSACTION.
Omitting the word TRANSACTION after BEGIN.
2fill in blank
medium

Complete the code to save a transaction permanently.

DBMS Theory
[1];
Drag options to blanks, or click blank then click option'
ASAVEPOINT
BCOMMIT
CROLLBACK
DBEGIN TRANSACTION
Attempts:
3 left
💡 Hint
Common Mistakes
Using ROLLBACK instead of COMMIT to save changes.
Forgetting to commit after making changes.
3fill in blank
hard

Fix the error in the code to undo changes in a transaction.

DBMS Theory
[1] TRANSACTION;
Drag options to blanks, or click blank then click option'
ABEGIN
BCOMMIT
CSAVEPOINT
DROLLBACK
Attempts:
3 left
💡 Hint
Common Mistakes
Using COMMIT instead of ROLLBACK to undo changes.
Using BEGIN TRANSACTION instead of ROLLBACK.
4fill in blank
hard

Fill both blanks to create a savepoint and rollback to it.

DBMS Theory
SAVEPOINT [1];
ROLLBACK TO [2];
Drag options to blanks, or click blank then click option'
Asp1
Bsp2
Csave1
Dstart
Attempts:
3 left
💡 Hint
Common Mistakes
Using different names for savepoint and rollback.
Using reserved words as savepoint names.
5fill in blank
hard

Fill all three blanks to start a transaction, create a savepoint, and rollback to it.

DBMS Theory
BEGIN [1];
SAVEPOINT [2];
ROLLBACK TO [3];
Drag options to blanks, or click blank then click option'
ATRANSACTION
Bsp_save
DSAVEPOINT
Attempts:
3 left
💡 Hint
Common Mistakes
Using different names for savepoint and rollback.
Omitting TRANSACTION after BEGIN.
Using SAVEPOINT keyword incorrectly.