PostgreSQL - Big Savings Alert – Don’t Miss This Deal - Ends In 1d 00h 00m 00s Coupon code: 26Y30OFF
  1. Home
  2. PostgreSQL
  3. PGCES-02 Exam
  4. Free PGCES-02 Questions

Free Practice Questions for PostgreSQL PGCES-02 Exam

Pass4Future also provide interactive practice exam software for preparing PostgreSQL CE 8 Silver (PGCES-02) Exam effectively. You are welcome to explore sample free PostgreSQL PGCES-02 Exam questions below and also try PostgreSQL PGCES-02 Exam practice test software.

Page:    1 / 14   
Total 142 questions

Question 1

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 the two SQL statements that will generate an error when executed next.



Answer : B, C


Question 2

Select two incorrect statements regarding large objects.



Answer : C, E


Question 3

Select two incorrect descriptions regarding the following SQL statements.

CREATE TABLE cities ( name text,

population float ); CREATE

TABLE capitals ( state

char(2) ) INHERITS

(cities);



Answer : C, E


Question 4

Select two SQL statements which abort a transaction.



Answer : B, D


Question 5

The table "custom" is defined below. The "id" column and "introducer" column are of

INTEGER type, and the "email" column is of TEXT type.

id | email | introducer ----+-- ---------------+-----------2 |

aaa@example.com | 1 3 |

bbb@example.com | 2 4 |

ccc@example.com | 2

Three SQL statements were executed in the following order:

UPDATE custom SET email = '' FROM custom c WHERE

custom.introducer = c.id; UPDATE custom SET introducer = NULL

WHERE introducer NOT IN (SELECT id FROM custom); DELETE

FROM custom WHERE id = 2 OR introducer = 2; Select the number of rows in the "custom" table after the execution.



Answer : A


Page:    1 / 14   
Total 142 questions