I have a problem in MySQL when trying to select specific entry from table which is not in another table. I know this sentence sounds nuts but here is an example what I am trying to do.
Table users:
user_id,username,password (plus other columns not important to this)
Table articles:
article_is,user_id,content (plus others)
Table views (used to store data if user viewed specific article):
view_id,article_id,user_id,date
Now, I am trying to select those users who has NOT read a specific article, for example article with id 10. So they have no entry in the views table.
I hope it makes more sense now.
Thanks for your answers. V.
1 Answer