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.
Taryn
4 months agoEun
4 months agoGerman
5 months agoNobuko
5 months agoShannon
5 months agoNan
5 months agoHannah
5 months agoMarica
5 months agoIlene
5 months agoNohemi
5 months agoWinfred
5 months agoLawana
5 months agoClaribel
6 months agoLeota
11 months agoJaclyn
10 months agoCeleste
10 months agoTwana
10 months agoChery
11 months agoWynell
9 months agoAhmed
9 months agoRueben
9 months agoKaron
9 months agoDavida
9 months agoAnna
10 months agoAyesha
10 months agoLynette
10 months agoRobt
11 months agoMatthew
10 months agoStefania
10 months agoCarry
11 months agoLeah
11 months agoToshia
10 months agoMarguerita
10 months agoAntonio
10 months agoVernice
10 months agoJunita
11 months agoIsreal
11 months agoJunita
11 months ago