When using LEFT JOIN
or RIGHT JOIN
, it makes a difference whether you put the filter in the WHERE
or into the JOIN
.
See this answer to a similar question I wrote some time ago:
What is the difference in these two queries as getting two different result set?
In short:
WHERE
clause (like you did, the results that aren't associated with that computer are completely filtered outJOIN
instead, the results that aren't associated with that computer appear in the query result, only with NULL
values