Limited-Time Offer: Enjoy 50% Savings! Ends in 00h 00m 00s Coupon code: 50OFF
Skip to content

Free PostgreSQL CE 8 Silver PGCES-02 Exam Questions

Page: 1 / 15 Total 142 questions

Want more questions? Get Premium Access.

Question 1

Select one incorrect statement concerning the following SQL statement.

CREATE OR REPLACE VIEW sales_view AS SELECT * FROM sales_table ORDER BY sales_date DESC LIMIT 10;

Correct Answer: D. Some errors occur when 'SELECT * FROM sales_table' is executed after the view is defined.

Question 2

Select two incorrect descriptions regarding the following SQL statements.

CREATE TABLE cities ( name text,

population float ); CREATE

TABLE capitals ( state

char(2) ) INHERITS

(cities);

Correct Answer: C. Searching 'capitals' also searches rows in 'cities'.; E. The second SQL statement results in an error, since the 'INHERITS' keyword is no longer available.

Question 3

The tables "t1" and "t2" are defined in the same way (they have the same data types and column names). You want to select rows in "t1" which are not in "t2". Select a correct keyword to fill in the blank below. SELECT * FROM t1 ______ SELECT * FROM t2;

Correct Answer: A. EXCEPT

Question 4

Based on the following request, select the most appropriate command for creating a database cluster. ?Character encoding of the template database needs to be EUC_JP ?Locale is not used

Correct Answer: D. initdb --encoding=EUC_JP --no-locale

Question 5

Select two incorrect statements regarding 'TRIGGER'.

Correct Answer: C. When SELECT is executed to the table, the specified function can be called.; E. A corresponding rule is automatically created when a trigger is created.

Question 6

Select an incorrect statement regarding the following SQL statement. Note that "user_view" is a view. CREATE OR REPLACE RULE rule_1 AS ON UPDATE TO user_view DO INSTEAD NOTHING;

Correct Answer: D. When executing 'UPDATE user_view', data is updated in the table that is the origin of the view.

Question 7

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;

Correct Answer: C. 3 rows

Question 8

Select two incorrect statements about the Point-In-Time Recovery (PITR) from below.

Correct Answer: B. It is necessary to stop the database server to perform a backup for the first time.; E. A backup can only be performed on a per-database basis.

Question 9

Select the SQL command that must be executed prior to executing the EXECUTE command.

Correct Answer: B. PREPARE

Question 10

What does the following command do? Choose the most appropriate statement from the selection below.

Note: $ is the command prompt.

$ pg_dump postgres > pgsql

Correct Answer: A. Writes a backup of the database postgres to the file pgsql.