The "sample" table consists of the following data. How many rows are returned by executing the following SQL statement?
SELECT i FROM sample GROUP BY i;
A. 1 rowA set of tables are defined as follows:
t1
t2
How many rows are returned by executing the following SQL statement? SELECT t1.name FROM t1 CROSS JOIN t2;
A. 0 rowsTable "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".
A. The update process for client "B" is blocked until the current connection for client "A" is finished.The following SQL statements were executed using psql. Select the appropriate statement about the result. LISTEN sign_v;
BEGIN;
NOTIFY sign_v; COMMIT; LISTEN sign_v;
A. At the point that 'NOTIFY sign_v' is executed, a message that starts with "Asynchronous notification 'sign_v' received" is output.Select two commands used to check the syntax of the ALTER TABLE statement in psql.
A. \h ALTER TABLEChoose the most suitable statement about user management of PostgreSQL. Note: the version of PostgreSQL is 8.0.
A. Usernames not registered in the operating system cannot be registered as PostgreSQL users.Select two incorrect statements concerning the system catalog.
A. It stores the object definition information for tables and columns.Select one option which cannot be specified using createdb.
A. Database localeSelect two appropriate statements from below about the following SQL statements: CREATE FUNCTION myfunc(INTEGER) RETURNS text LANGUAGE plpgsql STRICT AS ' DECLARE x ALIAS FOR $1; r text := ''default''; BEGIN IF x > 100 THEN SELECT INTO r data FROM mytable WHERE id = x; END IF; RETURN r; END;';
A. An error is generated unless the plpgsql language is registered in the database beforehand.Select one incorrect statement concerning the relational data model.
A. It expresses the real world in a collection of 2-dimensional tables called a relation.Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only PostgreSQL-CE exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your PGCES-02 exam preparations and PostgreSQL-CE certification application, do not hesitate to visit our Vcedump.com to find your solutions here.