live chatMcAfee Secure sites help keep you safe from identity theft, credit card fraud, spyware, spam, viruses and online scams
Pass4Test 10%OFF Discount Code

PostgreSQL-CE PostgreSQL CE 8 Silver - PGCES-02 Exam Questions

QUESTION NO: 1
Select two incorrect statements regarding 'DOMAIN'.
Correct Answer: B,E
QUESTION NO: 2
I want to restore data from a text format backup file foo.dump. Select an appropriate command.
Correct Answer: D
QUESTION NO: 3
The "sample" table consists of the data below. The column "x" is of type INTEGER. How many
rows are returned by executing the following SQL statement?
SELECT 6 / x FROM sample
WHERE CASE WHEN x = 0 THEN FALSE ELSE TRUE END;
Correct Answer: A
QUESTION NO: 4
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: C
QUESTION NO: 5
Which normal form has the constraint that there must be no tables with duplicate column values in the same row?
Correct Answer: E
QUESTION NO: 6
A table is defined as below. Select the most suitable description about the foreign key constraint.
CREATE TABLE master (id INTEGER PRIMARY KEY, name TEXT);
CREATE TABLE record (id INTEGER REFERENCES master (id), count INTEGER);
Correct Answer: A
QUESTION NO: 7
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.
Correct Answer: A,D
QUESTION NO: 8
Select one incorrect statement about the command shown below. Note: $ is the command prompt. $ dropuser -U admin foo
Correct Answer: C