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
조금 더 not deleted와 not PM 조건을 추가하려고 했어요 ![]()
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
정말 큰 도움이 되었습니다.. @RGJ 님과 당신 모두에게 감사드립니다!