SELECT αυτά που δεν υπάρχουν σε συσχετισμένο table
Βρίσκουμε αυτά που δεν κάνουν match
SELECT DISTINCT tags_to_news.tag_id, tags.name FROM `tags_to_news` LEFT OUTER JOIN tags ON tags.id = tags_to_news.tag_id WHERE tags.name IS NULL
Advertisement