T-SQL 101: 105 Using modern join syntax
There are two ways you can write common join syntax. There’s an older way to write the query and a new way to write the query.
In the image above, you can see the new way written first, and then the old way written below. The newer syntax was introduced as part of ANSI SQL, back in 1992. It has been recommended for over 30 years now.
Comparison
When you look at the older syntax, you’ll notice that I’m doing two things in the WHERE clause. I’m both determining how the tables are joined, and I’m also filtering the rows that I want.
2025-02-01
