Free PGCES-02 Exam Braindumps (page: 3)

Page 3 of 36

The "sample" table consists of the following data:
How many rows are returned by executing the following SQL statement? SELECT DISTINCT ON (data) * FROM sample;

  1. 2 rows
  2. 3 rows
  3. 4 rows
  4. 5 rows
  5. 6 rows

Answer(s): B



The following SQL statements were executed using psql.
Select the appropriate statement about the result.
LISTEN sign_v;
BEGIN;
NOTIFY sign_v;
COMMIT;
LISTEN sign_v;

  1. At the point that 'NOTIFY sign_v' is executed, a message that starts with "Asynchronous
    notification 'sign_v' received" is output.
  2. At the point that 'COMMIT' is executed, a message that starts with "Asynchronous notification
    'sign_v' received" is output.
  3. At the point that 'SELECT * FROM pg_user;" is executed, a message that starts with
    "Asynchronous notification 'sign_v' received" is output.
  4. When 'LISTEN sign_v' is executed for the second time, a message that starts with
    "Asynchronous notification 'sign_v' received" is output.
  5. The message "Asynchronous notification 'sign_v' received" is not received while in this
    connection.

Answer(s): B



Select the correct SQL statement which concatenates strings 'ABC' and 'abc' to form 'ABCabc'.

  1. SELECT 'ABC' . 'abc';
  2. SELECT cat('ABC', 'abc') FROM pg_operator;
  3. SELECT 'ABC' + 'abc';
  4. SELECT 'ABC' + 'abc' FROM pg_operator;
  5. SELECT 'ABC' || 'abc';

Answer(s): E



Select two correct descriptions about views.

  1. A view is created by 'DECLARE VIEW', and deleted by 'DROP VIEW'.
  2. A view is a virtual table which does not exist.
  3. A view is created to simplify complicated queries.
  4. You can create a view with the same name as already existing tables.
  5. A view only exists while the postmaster is running, and is deleted when the postmaster stops.

Answer(s): B,C



Page 3 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