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:
UPDATE custom SET email = '' FROM custom c WHERE
custom.introducer = c.id; UPDATE custom SET introducer = NULL
WHERE introducer NOT IN (SELECT id FROM custom); DELETE
FROM custom WHERE id = 2 OR introducer = 2; Select the number of rows in the "custom" table after the execution.
Leota
1 months agoJaclyn
8 days agoCeleste
20 days agoTwana
21 days agoChery
1 months agoAnna
19 days agoAyesha
20 days agoLynette
21 days agoRobt
2 months agoMatthew
18 days agoStefania
20 days agoCarry
2 months agoLeah
2 months agoToshia
20 days agoMarguerita
24 days agoAntonio
29 days agoVernice
1 months agoJunita
2 months agoIsreal
2 months agoJunita
2 months ago