CROSS JOIN is in the spotlight. This article finishes our small series of SQL JOIN-related publications.
SQL Server CROSS JOIN is the simplest of all joins. It implements a combination of 2 tables without a join condition. If you have 5 rows in one table and 3 rows in another, you get 15 combinations. Another definition is a Cartesian Product.
Now, why would you want to combine tables without a join condition? Hang on a bit because we are getting there. First, let’s refer to the syntax.
#sql server #cross join #inner join #outer join #sql join #sql