Quiz: What is the outcome of a SQL ROLLBACK statement during a transaction?
ROLLBACK reverts database modifications made since the last BEGIN TRANSACTION point.
Find tutorials, system documentation, dynamic pages, and interactive quizzes in one place.
ROLLBACK reverts database modifications made since the last BEGIN TRANSACTION point.
UNION performs a distinct deduplication pass on combined records; UNION ALL appends records directly, providing faster performance.
COALESCE(val1, val2, fallback) evaluates arguments sequentially and returns the first non-null value encountered.
Deadlocks occur when concurrent transactions acquire circular locks; database engines detect deadlocks and abort one of the transactions.
If two rows tie for rank 1, RANK() assigns the next row rank 3, whereas DENSE_RANK() assigns rank 2.
WHERE operates on individual rows before grouping; HAVING operates on aggregated summary rows.
CASE WHEN condition THEN val ELSE fallback END enables inline conditional projection within query results.
Correlated subqueries reference parent query columns, re-evaluating for every outer row processed.