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 |
aaa@example.com | 1 3 |
bbb@example.com | 2 4 |
ccc@example.com | 2
Three SQL statements were executed in the following order:
INSERT INTO custom SELECT max(id) + 1, 'ddd@example.com', 4
FROM custom; UPDATE custom SET introducer = 999 WHERE email = 'bbb@example.com'; DELETE FROM custom WHERE introducer NOT IN (SELECT id FROM custom); Select the number of rows in the "custom" table after the execution.
Noemi
7 months agoSharika
7 months agoSabina
7 months agoAn
7 months agoHollis
7 months agoWilliam
8 months agoFrancoise
8 months agoZona
8 months agoFrank
8 months agoDelila
9 months agoPaz
9 months agoDetra
9 months agoHelga
9 months agoGlen
9 months ago