Q: 1
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
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.