Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
SELECT DISTINCT tag_id FROM news_tag WHERE theme_id = КодСтрогоЗаданнойТемы
because it is in both articles
SELECT tag_id
FROM news_tag
WHERE (theme_id = 1)
GROUP BY tag_id
HAVING COUNT(news_id) = ( SELECT COUNT(DISTINCT(news_id)) FROM news_tag WHERE (theme_id = 1) )
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question