9.3. Visualiser les items non utilisés

C'est à dire les items ne possédant aucun tag.

SELECT *
FROM tag a LEFT JOIN tag b ON a.type=b.id LEFT JOIN tagged c ON a.id=c.item_id
WHERE b.type=1 and c.tag_id IS NULL

§§§