Which of the following statements best describes a database transaction?
What is the purpose of a transaction log in a DBMS?
1 Crore+ students have signed up on EduRev. Have you? Download the App |
Which of the following is NOT a property of a transaction in DBMS?
What is the primary purpose of concurrency control in DBMS?
Which of the following isolation levels provides the highest degree of concurrency but may lead to non-repeatable reads?
Consider the following transaction code:
BEGIN TRANSACTION;
UPDATE products SET price = price * 1.1 WHERE category = 'Electronics';
COMMIT;
What will be the outcome of this transaction?
Consider the following transaction code:
BEGIN TRANSACTION;
SELECT COUNT(*) FROM orders;
ROLLBACK;
Consider the following transaction code:
BEGIN TRANSACTION;
UPDATE customers SET balance = balance - 100 WHERE id = 1;
UPDATE customers SET balance = balance + 100 WHERE id = 2;
COMMIT;
If the initial balance of customer 1 is $500 and customer 2 is $300, what will be the final balance of customer 1 and customer 2 after the transaction is committed?
Consider the following transaction code:
BEGIN TRANSACTION;
SELECT COUNT(*) FROM products WHERE category = 'Clothing';
UPDATE products SET price = price * 0.9 WHERE category = 'Clothing';
COMMIT;
Consider the following transaction code:
BEGIN TRANSACTION;
INSERT INTO orders (customer_id, product_id, quantity) VALUES (1, 100, 5);
INSERT INTO orders (customer_id, product_id, quantity) VALUES (2, 200, 3);
COMMIT;
What will be the outcome of this transaction?
Which of the following is an example of a concurrency control technique used in DBMS to handle conflicts between transactions?
Which of the following is a necessary condition for a schedule to be serializable in DBMS?
Which of the following is a violation of the serializability property in DBMS?
Which of the following techniques is used to ensure isolation and consistency in DBMS?
Which of the following is a correct statement about the strict two-phase locking (2PL) protocol in DBMS?