nerdexam
PostgreSQL_CE

PGCES-02 · Question #121

PostgreSQL CE PGCES-02 Exam A table and view are defined as follows: CREATE TABLE item (id INT, name TEXT, description TEXT); CREATE VIEW item_simple AS SELECT id, name FROM item; A set of SQL stateme

Sign in or unlock PGCES-02 to reveal the answer and full explanation for question #121. The question stem and answer options stay visible for context.

Question

PostgreSQL CE PGCES-02 Exam A table and view are defined as follows:

CREATE TABLE item (id INT, name TEXT, description TEXT); CREATE VIEW item_simple AS SELECT id, name FROM item; A set of SQL statements were executed in the order below. Select the most appropriate statement concerning the execution results. BEGIN; SELECT * FROM item_simple; INSERT INTO item_simple VALUES (1, 'item_name_1'); UPDATE item_simple SET name = 'item_name_2' WHERE id = 1; DELETE FROM item_simple; END;

Options

  • AAn error is generated at the point the SELECT statement is executed.
  • BAn error is generated at the point the INSERT statement is executed.
  • CAn error is generated at the point the UPDATE statement is executed.
  • DAn error is generated at the point the DELETE statement is executed.
  • ENo error is generated.

Unlock PGCES-02 to see the answer

You've previewed enough free PGCES-02 questions. Unlock PGCES-02 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Full PGCES-02 Practice