Alle unmarkierten Themen finden

Ich suche nach einer Abfrage mit Data Explorer, um alle Themen ohne Tags abzurufen.

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

Ich wollte noch einen kleinen Schuss von “nicht gelöscht” und “nicht PM” hinzufügen :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

Das ist super hilfreich.. sowohl @RGJ als auch du.. Danke!