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