Select the correct SQL statement which concatenates strings 'ABC' and 'abc' to form 'ABCabc'.
Answer(s): E
Select two correct descriptions about views.
Answer(s): B,C
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".
Answer(s): B
SQL statements were executed in the following order: CREATE TABLE fmaster (id INTEGER PRIMARY KEY, name TEXT); CREATE TABLE ftrans (id INTEGER REFERENCES fmaster (id), stat INTEGER, date DATE); INSERT INTO fmaster VALUES (1, 'itemA'); INSERT INTO ftrans VALUES (1, 1, CURRENT_DATE); Select two SQL statements that will generate an error when executed next.
Answer(s): A,C
Select three SQL statements which return NULL.
Answer(s): A,B,D
Post your Comments and Discuss Postgresql PGCES-02 exam prep with other Community members: