I am joining two tables with half a million records each and this is the structure of both tables
A (AKey, Name)
B (BKey, AKey, Value, Set).
Set is a bit type. No index on Set.
Is there any difference between these two queries?
SELECT Name, Value
FROM A
INNER JOIN B
ON A.AKey = B.Key
AND B.Set = 1
and
SELECT Name,Value
FROM A
INNER JOIN B
ON A.Key = B.Key
WHERE B.Set = 1
These two return the same results. Might be a noob question but still a question.