PGCES-02 · Question #89
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 ----+-----------------+…
The correct answer is C. 2 rows. See the full explanation below for the reasoning.
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: 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.
Options
- A0 rows
- B1 row
- C2 rows
- D3 rows
- E4 rows
How the community answered
(65 responses)- A5% (3)
- B2% (1)
- C85% (55)
- D8% (5)
- E2% (1)
Community Discussion
No community discussion yet for this question.