タグ付けされていないすべてのトピックを見つける

タグなしのトピックをすべて取得するために、Data Explorer を使用するクエリを探しています。

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

削除されておらず、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

これは非常に役立ちます。RGJさんもあなたもです。ありがとうございます!

「いいね!」 1

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