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