PostgreSQL CE 8 Silver PGCES-02 Exam Practice Test

Page: 1 / 14
Total 142 questions
Question 1

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;



Answer : C


Question 2

I want to restore data from a text format backup file foo.dump. Select an appropriate command.



Answer : D


Question 3

Select the correct command to collect and save the statistical information of a table.



Answer : A


Question 4

In the "customer" table, you want to change the "email" values which have an "id" value of 10000 or less, to NULL. Select the correct SQL statement to achieve this task.



Answer : C


Question 5

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);



Answer : C


Question 6

Select two suitable statements about sequences.



Answer : B, E


Question 7

The table "t1" is defined below. The column "id"

for table "t1" is of INTEGER type.

id | name ----

+-----------1 |

mammoth 2 |

tortoise 3 |

coelacanth

The following SQL statements were executed. Select the correct statement about the execution result. BEGIN; DECLARE c SCROLL CURSOR FOR SELECT name FROM t1 ORDER BY id;

MOVE FORWARD 2 FROM c; FETCH FORWARD ALL FROM c; COMMIT;



Answer : B


Page:    1 / 14   
Total 142 questions