CS FundamentalsModerateGATE CS · Product placement
A transaction has executed its final statement, but its commit record is not yet on stable storage. Which state is it in?
- A. Failed
- B. Committed
- C. Active
- D. Partially committed
Correct answer: D. Partially committed
After the last operation the transaction is partially committed; it becomes committed only once the commit record is durable. A crash at this point means it must be rolled back.
More DBMS and SQL questions
- R(A, B, C, D, E, F) has functional dependencies EF → D, B → C, D → BF, A → E. How many superkeys does R have?
- Table Product(pid, cat, price) rows: (1, 'X', 10), (2, 'X', 20), (3, 'Y', 20), (4, NULL, 30), (5, 'Y', NULL), (6, 'Z', 5). What does this…
- R(A, B, C, D, E) with functional dependencies E → BC, D → B is decomposed into R1(A, B, D), R2(C, D), R3(B, C, E). Which statement is…
- A B+ tree index uses 1024-byte blocks, 12-byte search keys, 10-byte block pointers and 6-byte record (data) pointers. Each leaf also keeps…
- Which statement about a UNIQUE constraint versus a PRIMARY KEY in standard SQL is correct?
- Consider the schedule R1(B), W3(B), W3(A), R2(B), W2(A), R1(A), W1(A). Which statement is correct?