Select Content_id from table_name where Tag_id = 'aa'
SELECT Content_id
FROM table
WHERE t.Tag_id = 'aa'
EXCEPT
SELECT Content_id
FROM table
WHERE t.Tag_id = 'bb'
SELECT Content_id
FROM table AS t
WHERE t.Tag_id = 'aa'
AND t.Tag_id NOT IN
(
SELECT Content_id
FROM table
WHERE t.Tag_id = 'bb'
)