T-SQL 101: 108 Joining more than two tables
Of course, you might also need to join more than two tables. The example above shows how to do that.
I started with the Orders table, then joined to the OrderLines table, and finally, I’ve also joined to Products.
It’s another example of why I prefer the modern join syntax. Instead of just listing three tables and a bunch of WHERE clause predicates, for each table involved, I specify how it’s joined.
2025-02-04