Trouver tous les sujets sans étiquette

Je recherche une requête utilisant Data Explorer pour récupérer tous les sujets non balisés.

SELECT t.id AS topic_id
FROM topics t
LEFT JOIN topic_tags tt ON tt.topic_id = t.id
WHERE tt.tag_id IS NULL
3 « J'aime »

J’allais ajouter une petite touche de « non supprimé » et « non PM » :slight_smile:

SELECT t.id AS topic_id
FROM topics t
LEFT JOIN topic_tags tt ON t.id = tt.topic_id
WHERE tt.tag_id IS NULL
AND t.deleted_at IS NULL
AND t.archetype = 'regular'
ORDER BY topic_id DESC
3 « J'aime »

C’est super utile… vous deux, @RGJ et vous… Merci !

1 « J'aime »

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.