PGCES-02 Web TestEngine demo

Exit VCEDump PGCES-02 PostgreSQL CE 8 Silver
Question 8 of 22
0% complete
Q8 Single choice

Table "t1" is defined below.
Table "t1" has a column "id" of type INTEGER, and a column "name" of type TEXT. t1:
The following SQL is executed while client "A" is connected. BEGIN; SELECT * FROM t1 WHERE id = 2
FOR UPDATE; SELECT * FROM t1 WHERE id = 1 FOR UPDATE; -- (*)
While the second 'SELECT' statement, shown with (*), is being executed, a separate client "B" connects and executes the following SQL.
Select the correct statement about the execution results. UPDATE t1 SET name = 'turtle' WHERE id = 2;

Note: the default transaction isolation level is set to "read committed".

Sign in to mark questions

Sign in to save marked questions and return to this demo.

Sign in