I have the following table structure that define the relationship between posts and their categories.
Post_id | Category_id
---------------------
1 | A
1 | B
1 | C
2 | A
2 | B
2 | C
2 | D
So i want to search the post that have two given categories (For example A and B) and then delete the row A. So the result would be:
Post_id | Category_id
---------------------
1 | B
1 | C
2 | B
2 | C
2 | D
How can achieve this?