Yes - it is important.
Any filter on a joined table must be in a join for proper operation β that is, the first will work, the second will not.
Try the following (SQL Server syntax) to see how the results differ.
declare @u table (user_id int, division varchar(20)) declare @ur table (user_id int, created_by varchar(10)) insert @u values (1,'sales'), (2,'marketing'), (3,'engineering') insert @ur values (1, 'mike'), (3,'james'), (3,'mike') select * from @uu left join @ur ur on ur.user_id = u.user_id and ur.created_by = 'Mike' select * from @uu left join @ur ur on ur.user_id = u.user_id where ur.created_by = 'Mike'
source share