You execute these commands:
Which two, used independently, can replace
You execute these commands:
Which two, used independently, can replace
To ensure that the SELECT COUNT(*) FROM customers query returns 1, the transaction must be rolled back to a state before the second insert. Using ROLLBACK; undoes all operations since the last COMMIT, effectively removing the insertion of 'Customer 2' and leaving the count as 1. ROLLBACK TO post_insert; rolls back to the saved point after the first insert, also undoing 'Customer 2' insertion and making the count 1. Therefore, the valid options are ROLLBACK; and ROLLBACK TO post_insert;.
BC is correct as the word savepoint is optionnal.
E is invalid. BC is correct
BC is correct
BC is the correct answer since SAVEPOINT is optional in ROLLBACK there's no such thing as COMMIT TO SAVEPOINT
BD is correct answer.
All savepoints of the current transaction are deleted if you execute a COMMIT , or a ROLLBACK that does not name a savepoint.
Voted for BC. SAVEPOINT word is optional, A rollbacks whole transaction, E is invalid as there's not such thing in COMMIT synthax.