Free PGCES-02 Exam Braindumps (page: 2)

Page 2 of 36

Select two suitable statements regarding the data types of PostgreSQL.

  1. One field can handle up to 1GB of data.
  2. 'n' in CHARACTER(n) represents the number of bytes.
  3. Only the INTEGER type can be declared as an array.
  4. There is a non-standard PostgreSQL data type, called Geometric data type, which handles 2-dimensional data.
  5. A large object data type can be used to store data of unlimited size.

Answer(s): A,D



The table "score" is defined as follows:

gid | score
-----+-------
1 | 70
1 | 60
2 | 100
3 | 80
3 | 50
The following query was executed. Select the number of rows in the result. SELECT gid, max(score) FROM score
GROUP BY gid HAVING max(score) > 60;

  1. 1 row
  2. 2 rows
  3. 3 rows
  4. 4 rows
  5. 5 rows

Answer(s): C



Table "t1" is defined as follows:
CREATE TABLE t1 (value VARCHAR(5));
A set of SQL statements were executed in the following order. Select the number of rows that
table "t1" has after execution.
BEGIN;
INSERT INTO t1 VALUES ('AA');
SAVEPOINT point1;
INSERT INTO t1 VALUES ('BB');
SAVEPOINT point2;
INSERT INTO t1 VALUES ('CC');
ROLLBACK TO point1;
INSERT INTO t1 VALUES ('DD');
END;

  1. 1 row
  2. 2 rows
  3. 3 rows
  4. 4 rows
  5. 0 rows

Answer(s): B



Select two suitable statements about sequences.

  1. A sequence always returns a 4-byte INTEGER type value, so the maximum value is 2147483647.
  2. A sequence is defined by 'CREATE SEQUENCE', and deleted by 'DROP SEQUENCE'.
  3. Although the "nextval" function is called during a transaction, it will have no effect if that
    transaction is rolled back.
  4. A sequence always generates 0 or consecutive positive numbers.
  5. A sequence number can be set by calling the "setval" function.

Answer(s): B,E



Page 2 of 36



Post your Comments and Discuss Postgresql PGCES-02 exam with other Community members:

Gabe commented on January 02, 2020
easy check out
UNITED STATES
upvote