I am using MySQL and I would like to know what exactly happens (or what may happens) in the following cases when I run SLQ queries as-like
Case 1
SELECT ...
WHERE 'articles'.'author_id' = 2
AND (articles.id IN (46,4,5))
AND (articles.id IN (4,5,16,40))
Case 2
SELECT ...
WHERE 'articles'.'author_id' = 2
AND (articles.id NOT IN (46,4,5))
AND (articles.id IN (4,5,16,40))
?
In particular, I mean what happens with doubles articles.id statements in the WHERE clause?
Is just a logical AND
Applied to the 1. case:
Applied to the 2. case: