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
5 months agoSharika
5 months agoSabina
5 months agoAn
6 months agoHollis
6 months agoWilliam
6 months agoFrancoise
6 months agoZona
7 months agoFrank
7 months agoDelila
7 months agoPaz
7 months agoDetra
7 months agoHelga
8 months agoGlen
8 months ago