Decide Fast & Get 50% Flat Discount | Limited Time Offer - Ends In 0d 00h 00m 00s Coupon code: SAVE50

Master PostgreSQL PGCES-02 Exam with Reliable Practice Questions

Page: 1 out of Viewing questions 1-5 out of 142 questions
Last exam update: Nov 20,2024
Upgrade to Premium
Question 1

A set of tables are defined as follows: t1 t2 How many rows are returned by executing the following SQL statement? SELECT * FROM t1 WHERE EXISTS (SELECT name FROM t2 WHERE t1.id = t2.id);


Correct : B


Options Selected by Other Users:
Mark Question:

Start a Discussions

Submit Your Answer:
0 / 1500
Question 2

SQL statements were executed in the following order. CREATE TABLE book ( id VARCHAR(21), title TEXT NOT NULL, price INT, UNIQUE

(id), CHECK (price > 0) ); INSERT INTO book VALUES ('4-12345-678-

9', 'SQL book', 2300); --(1) INSERT INTO book (title, price) VALUES

('PostgreSQL', 3000); --(2) UPDATE book SET id = '4-12345-678-9'

WHERE id IS NULL; --(3) DELETE FROM book WHERE price < 0; --(4)

While executing, select the first location that generates an error.


Correct : C


Options Selected by Other Users:
Mark Question:

Start a Discussions

Submit Your Answer:
0 / 1500
Question 3

Select one incorrect statement concerning the following SQL statement.

CREATE OR REPLACE VIEW sales_view AS SELECT * FROM sales_table ORDER BY sales_date DESC LIMIT 10;


Correct : D


Options Selected by Other Users:
Mark Question:

Start a Discussions

Submit Your Answer:
0 / 1500
Question 4

A set of tables are defined as follows: t1 t2 How many rows are returned by executing the following SQL statement? SELECT * FROM t1 LEFT OUTER JOIN t2 USING (id);


Correct : C


Options Selected by Other Users:
Mark Question:

Start a Discussions

Submit Your Answer:
0 / 1500
Question 5

Select two correct statements from below concerning the ANALYZE command.


Correct : A, D


Options Selected by Other Users:
Mark Question:

Start a Discussions

Submit Your Answer:
0 / 1500