From the book:
“The join relates tables based on a key column, such as primary key or a foreign key.”
Performance tips from Chapter 14 — Improving SQL Server Performance related to joins:
“Try to avoid nullable foreign key columns to limit the amount of outer joins that might need to be written. Outer joins tend to be more expensive to process than inner joins. ”
“Be sure to create an index on any foreign key. Because foreign keys are used in joins, foreign keys almost always benefit from having an index.”
- INNER JOIN – default join. All matching rows will be returned.
- FULL OUTER JOIN – this join returns all matching and un-matching rows from both tables.
- LEFT OUTER JOIN – this join returns all, either matching or un-matching, rows from the left table.
- RIGHT OUTER JOIN – this join returns all, either matching or un-matching, rows from the right table.
- Ultra-Fast ASP.NET: Build Ultra-Fast and Ultra-Scalable web sites using ASP.NET and SQL Server
- Advanced .NET Debugging
- Debugging Microsoft .NET 2.0 Applications