OK I need help with a query. Lets say I have the following tables:
content table
contentID,
contentName,
.. more columns ..
site_content table
siteID
contentID
So in content table we would have something like
1 - Content 1
2 - Content 2
3 - Content 3
In the site_conten ttable I would have
site1 - 1
site 2 - 1
site 3 - 1
site 1 - 2
So lets say I want to find all the items in the content table that are not associated to a specific site in site_content.
Ie., I want to find the content that is not assigned to site 2.
So in this instance it would return 2 & 3 from the content table because content #1 is assigned to site 2.
Hope this makes sense, im not good at complex joins at all. I think I need some sort of self join but have no idea how to do it properly.
Please advise.
Thanks.