say I have something like:
select id from users where age > 21;
this yields
12
13
14
15
Now I would like the query to not just find those IDs but also do something on them, like:
(for each id found): delete from people where user_id = <the id found>;
how do I write that?