SQL SERVER - 2005 - Difference Between INTERSECT and INNER JOIN (blog.sqlauthority.com)
submitted by
pinaldave(9662) 3 years, 9 months ago
INTERSECT operator in SQL Server 2005 is used to retrieve the common records from both the left and the right query of the Intersect Operator. INTERSECT operator returns almost same results as INNER JOIN clause many times.
When using INTERSECT operator the number and the order of the columns must be the same in all queries as well data type must be compatible.
Let us see understand how INTERSECT and INNER JOIN are related.We will be using AdventureWorks database to demonstrate our example.
|category: Database
|Views: 294
tags:
SQL SQLAuthority pinaldave SQLServer Database another
Everyones tags:
Your Tags: