nerdexam
PostgreSQL_CE

PGCES-02 · Question #45

PGCES-02 Question #45: Real Exam Question with Answer & Explanation

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

Question

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: UPDATE custom SET email = '' FROM custom c WHERE custom.introducer = c.id; UPDATE custom SET introducer = NULL WHERE introducer NOT IN (SELECT id FROM custom); DELETE FROM custom WHERE id = 2 OR introducer = 2; PostgreSQL CE PGCES-02 Exam Select the number of rows in the "custom" table after the execution.

Options

  • A0 rows
  • B1 row
  • C2 rows
  • D3 rows
  • E4 rows

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