For simplification, I have two tables related with one to many using a foreign key, for example:
Users table: id name Actions table: id user_id
select u.id from users u left outer join actions a on a.user_id = u.id where a.user_id is null