Select two statements that the command below DOES NOT do. Note: $ is the command prompt. $
pg_dump -b -F c b > d
Show answer and explanation
Correct answers: A, D
PGCES-02 Real Exam Questions
142 questions available · Page 1 of 15
Updated Exam DumpsVerified AnswersPass Guarantee
Select two statements that the command below DOES NOT do. Note: $ is the command prompt. $
pg_dump -b -F c b > d
Correct answers: A, D
Select two incorrect statements concerning the system catalog.
Correct answers: C, E
Select one incorrect description regarding the following SQL statement defining a function. CREATE OR REPLACE FUNCTION get_file_list(TEXT, BOOLEAN) RETURNS SETOF TEXT LANGUAGE C STRICT
SECURITY DEFINER AS 'myfuncs.so';
Correct answer: E
Select an appropriate command to check the PostgreSQL version in psql.
Correct answer: C
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 | [email protected] | 1
3 | [email protected] | 2
4 | [email protected] | 2
Three SQL statements were executed in the following order: INSERT INTO custom SELECT max(id) + 1,
'[email protected]', 4 FROM custom; UPDATE custom SET introducer = 999
WHERE email = '[email protected]'; DELETE FROM custom WHERE introducer NOT IN (SELECT id
FROM custom);
Select the number of rows in the "custom" table after the execution.
Correct answer: C
Select two incorrect statements concerning PostgreSQL license.
Correct answers: D, E
A sequence has the following definition: CREATE SEQUENCE seq1 CACHE 10 CYCLE; Select the value
that is returned by executing the following SQL. SELECT nextval('seq1');
Correct answer: B
Which psql command do you need to execute to display the list of tables in the currently connected database?
Correct answer: E
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: D
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 HAVING count(*) = 2;
Correct answer: C