Encontrando todos los temas sin etiquetar

Estoy buscando una consulta usando el Explorador de datos para obtener todos los temas sin etiquetar.

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 Me gusta

Iba a añadir un pequeño toque de “no eliminado” y “no 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 Me gusta

Esto es súper útil… tanto para @RGJ como para ti… ¡Gracias!

1 me gusta

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