I have the following query:
select full_name, email, users.uid
from
cloudsponge
inner join
`users` on users.uid = cloudsponge.importer_uid
where cloudsponge.email not in (select mail from users)
It works as expected but I'm wondering, can I convert the last line to a join (rather than a subquery). This would be helpful as I can use my frameworks ORM rather than hardcode SQL into the application.
Thanks!