Nasty Joins, Cartesian Joins
A Cartesian join is an (incorrect) join between two tables. Incorrect because the tables have not been joined in any relational format.
Select street_address from authors a, location b where a.last_name like ‘%varma%’
Since the tables have not been paired using a common relational column,
SQL Server will multiply all the rows of table A with table B. This is called a Cartesian Join.
Other Bad Joins
Hash Joins, Merge Joins, Nested Loop Joins.
Leave a Reply