I need to select a row from my mysql table.
In the table there are two rows with one equal value.
TABLE
-----
articleId
keywordId
Now I need to select an article, that has keyword Id = 1, as well as keyword Id = 12.
Every link to a keyword has its own record.
How can I do one select query to know, if there is an article, that matches the two keywords?
Try this:
Check the SQL FIDDLE DEMO