Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 15537

[RESOLVED] Why does a left join negate a where condition?

$
0
0
Code:

Select Count(0)
from Accounts a inner join Jdx j on a.jdx = j.id
and a.ID not in (Select ID from Skip)

There are 2 rows in Accounts, ID values 1 and 2. There is one value in Skip.ID, "1". The result of the query above is 1. When I change the join to 'left', the count is 2. Why?

Viewing all articles
Browse latest Browse all 15537

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>