Topic: Best way to search for orphans? (is it possible to do in SQL?)
I want to fetch all id's of the attachments from where the post_id cell references to a post that no longer exist.
I have earlier done this in php and several queries, but I'm wondering if it's possible to write one SQL query to do this?
(I figured it'll probably be an extreme gain in processign speed if SQL will be able to handle it entierly)
(i.e. I want to fetch af.id where af.post_id isn't in any post.id)