When I execute the below query on Microsoft SQL Server 2012, I get values which are not present in the table RequiredVisitLink. Why is this happening? I was expecting to get values only common to both and which satisfy the condition.
select a.ID from table1 a left join table2 b on a.ID = b.ID where Baseball=1