<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: SQL SERVER &#8211; 2005 &#8211; Difference Between INTERSECT and INNER JOIN &#8211; INTERSECT vs. INNER JOIN</title>
	<atom:link href="http://blog.sqlauthority.com/2008/08/03/sql-server-2005-difference-between-intersect-and-inner-join-intersect-vs-inner-join/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2008/08/03/sql-server-2005-difference-between-intersect-and-inner-join-intersect-vs-inner-join/</link>
	<description>Personal Notes of Pinal Dave</description>
	<lastBuildDate>Mon, 13 Feb 2012 15:11:24 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: rekha</title>
		<link>http://blog.sqlauthority.com/2008/08/03/sql-server-2005-difference-between-intersect-and-inner-join-intersect-vs-inner-join/#comment-206973</link>
		<dc:creator><![CDATA[rekha]]></dc:creator>
		<pubDate>Tue, 29 Nov 2011 06:08:00 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=772#comment-206973</guid>
		<description><![CDATA[please display the table (with the records) while explaining the queries... because im learning SQL now. so, please shown the table with records. before writing the query .]]></description>
		<content:encoded><![CDATA[<p>please display the table (with the records) while explaining the queries&#8230; because im learning SQL now. so, please shown the table with records. before writing the query .</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Miguel</title>
		<link>http://blog.sqlauthority.com/2008/08/03/sql-server-2005-difference-between-intersect-and-inner-join-intersect-vs-inner-join/#comment-196544</link>
		<dc:creator><![CDATA[Miguel]]></dc:creator>
		<pubDate>Wed, 16 Nov 2011 03:56:45 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=772#comment-196544</guid>
		<description><![CDATA[This time , I feel so good making this comment. Congratulations for all your samples and dedication.]]></description>
		<content:encoded><![CDATA[<p>This time , I feel so good making this comment. Congratulations for all your samples and dedication.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vijayakumar.P</title>
		<link>http://blog.sqlauthority.com/2008/08/03/sql-server-2005-difference-between-intersect-and-inner-join-intersect-vs-inner-join/#comment-152293</link>
		<dc:creator><![CDATA[Vijayakumar.P]]></dc:creator>
		<pubDate>Mon, 01 Aug 2011 11:58:28 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=772#comment-152293</guid>
		<description><![CDATA[SELECT EmpNo, EmpName,Salery
FROM EmployeeRecord
WHERE Salery &gt; 1000
intersect 
SELECT EmpNo, EmpName,Salery
FROM EmployeeRecord
WHERE Salery &gt; 2000
ORDER BY EmpName; 

select a.empno,a.empname,a.Salery 
from EmployeeRecord a
inner join 
EmployeeRecord b on 
a.empno=b.empno and b.Salery &gt; 2000
ORDER BY a.EmpName; 

Is it correct?]]></description>
		<content:encoded><![CDATA[<p>SELECT EmpNo, EmpName,Salery<br />
FROM EmployeeRecord<br />
WHERE Salery &gt; 1000<br />
intersect<br />
SELECT EmpNo, EmpName,Salery<br />
FROM EmployeeRecord<br />
WHERE Salery &gt; 2000<br />
ORDER BY EmpName; </p>
<p>select a.empno,a.empname,a.Salery<br />
from EmployeeRecord a<br />
inner join<br />
EmployeeRecord b on<br />
a.empno=b.empno and b.Salery &gt; 2000<br />
ORDER BY a.EmpName; </p>
<p>Is it correct?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sourabh chati</title>
		<link>http://blog.sqlauthority.com/2008/08/03/sql-server-2005-difference-between-intersect-and-inner-join-intersect-vs-inner-join/#comment-141241</link>
		<dc:creator><![CDATA[sourabh chati]]></dc:creator>
		<pubDate>Thu, 16 Jun 2011 05:14:14 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=772#comment-141241</guid>
		<description><![CDATA[hi Pinal Sir,
I want actual example of instead of trigger ,so please give me example with live example.


thanks,

Regards,
Sourabh]]></description>
		<content:encoded><![CDATA[<p>hi Pinal Sir,<br />
I want actual example of instead of trigger ,so please give me example with live example.</p>
<p>thanks,</p>
<p>Regards,<br />
Sourabh</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/2008/08/03/sql-server-2005-difference-between-intersect-and-inner-join-intersect-vs-inner-join/#comment-114981</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Fri, 28 Jan 2011 10:39:29 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=772#comment-114981</guid>
		<description><![CDATA[Yes for outer joins it does matter]]></description>
		<content:encoded><![CDATA[<p>Yes for outer joins it does matter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Smita</title>
		<link>http://blog.sqlauthority.com/2008/08/03/sql-server-2005-difference-between-intersect-and-inner-join-intersect-vs-inner-join/#comment-114389</link>
		<dc:creator><![CDATA[Smita]]></dc:creator>
		<pubDate>Wed, 26 Jan 2011 08:21:55 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=772#comment-114389</guid>
		<description><![CDATA[thanks Madhivanam... 
In case of outer join will order of tables matter...]]></description>
		<content:encoded><![CDATA[<p>thanks Madhivanam&#8230;<br />
In case of outer join will order of tables matter&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/2008/08/03/sql-server-2005-difference-between-intersect-and-inner-join-intersect-vs-inner-join/#comment-114035</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Tue, 25 Jan 2011 08:15:04 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=772#comment-114035</guid>
		<description><![CDATA[If you use inner join the order of the tables does not matter]]></description>
		<content:encoded><![CDATA[<p>If you use inner join the order of the tables does not matter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Smita</title>
		<link>http://blog.sqlauthority.com/2008/08/03/sql-server-2005-difference-between-intersect-and-inner-join-intersect-vs-inner-join/#comment-113984</link>
		<dc:creator><![CDATA[Smita]]></dc:creator>
		<pubDate>Tue, 25 Jan 2011 05:55:44 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=772#comment-113984</guid>
		<description><![CDATA[I have three tables. Table1 has 10 rows, Table2 has 100 rows and Table3 has 1000 rows, so please suggest me that how to join these tables using inner join means which table we should put first and which on second no. and so on.]]></description>
		<content:encoded><![CDATA[<p>I have three tables. Table1 has 10 rows, Table2 has 100 rows and Table3 has 1000 rows, so please suggest me that how to join these tables using inner join means which table we should put first and which on second no. and so on.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sabahuddin</title>
		<link>http://blog.sqlauthority.com/2008/08/03/sql-server-2005-difference-between-intersect-and-inner-join-intersect-vs-inner-join/#comment-111978</link>
		<dc:creator><![CDATA[Sabahuddin]]></dc:creator>
		<pubDate>Wed, 19 Jan 2011 06:48:10 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=772#comment-111978</guid>
		<description><![CDATA[SELECT * FROM dbo.vwNewBatchTime WHERE SessionStartMonth &gt;=&#039;Jan&#039; AND SessionStartYear&gt;= &#039;2010&#039; AND SessionEndMonth &lt;= &#039;Dec&#039;  and SessionEndYear &lt;=&#039;2014&#039; and IsActive = &#039;true&#039;]]></description>
		<content:encoded><![CDATA[<p>SELECT * FROM dbo.vwNewBatchTime WHERE SessionStartMonth &gt;=&#8217;Jan&#8217; AND SessionStartYear&gt;= &#8217;2010&#8242; AND SessionEndMonth &lt;= &#039;Dec&#039;  and SessionEndYear &lt;=&#039;2014&#039; and IsActive = &#039;true&#039;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jaishi Ram</title>
		<link>http://blog.sqlauthority.com/2008/08/03/sql-server-2005-difference-between-intersect-and-inner-join-intersect-vs-inner-join/#comment-106837</link>
		<dc:creator><![CDATA[Jaishi Ram]]></dc:creator>
		<pubDate>Mon, 20 Dec 2010 07:25:28 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=772#comment-106837</guid>
		<description><![CDATA[I have a col. name as ppp type-nchar
data as 
2-2010
3-2010
4-2010
so on

1-2011
2-2011
 I want to copy data from this table between 2-2010 to 3-2010.

pl. suggest me query. Thanking u very much.]]></description>
		<content:encoded><![CDATA[<p>I have a col. name as ppp type-nchar<br />
data as<br />
2-2010<br />
3-2010<br />
4-2010<br />
so on</p>
<p>1-2011<br />
2-2011<br />
 I want to copy data from this table between 2-2010 to 3-2010.</p>
<p>pl. suggest me query. Thanking u very much.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/2008/08/03/sql-server-2005-difference-between-intersect-and-inner-join-intersect-vs-inner-join/#comment-100538</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Wed, 17 Nov 2010 11:33:46 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=772#comment-100538</guid>
		<description><![CDATA[No. It will work for non numeric columns too. Did you get any errors?]]></description>
		<content:encoded><![CDATA[<p>No. It will work for non numeric columns too. Did you get any errors?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pankaj</title>
		<link>http://blog.sqlauthority.com/2008/08/03/sql-server-2005-difference-between-intersect-and-inner-join-intersect-vs-inner-join/#comment-100313</link>
		<dc:creator><![CDATA[Pankaj]]></dc:creator>
		<pubDate>Tue, 16 Nov 2010 09:55:31 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=772#comment-100313</guid>
		<description><![CDATA[Dear all,
Is except and intesect work inly in case of numeric field?

regards
pankaj]]></description>
		<content:encoded><![CDATA[<p>Dear all,<br />
Is except and intesect work inly in case of numeric field?</p>
<p>regards<br />
pankaj</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Harry Schueler</title>
		<link>http://blog.sqlauthority.com/2008/08/03/sql-server-2005-difference-between-intersect-and-inner-join-intersect-vs-inner-join/#comment-89777</link>
		<dc:creator><![CDATA[Harry Schueler]]></dc:creator>
		<pubDate>Mon, 27 Sep 2010 16:00:56 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=772#comment-89777</guid>
		<description><![CDATA[I need to re-write the Statement below so that it will work in an old version of WIN-SQL that does not support INTERSECT statement and am not having any success, can you provide some help? Thanks Harry.

select hrtemno, hrtdpcd, hrttodt, hrtgpno from hraact where hrttrtp IN (&#039;p&#039;,&#039;l&#039;) 
intersect select hrtemno, hrtdpcd, hrttodt, hrtgpno from hraact where hrttrtp = &#039;m&#039;]]></description>
		<content:encoded><![CDATA[<p>I need to re-write the Statement below so that it will work in an old version of WIN-SQL that does not support INTERSECT statement and am not having any success, can you provide some help? Thanks Harry.</p>
<p>select hrtemno, hrtdpcd, hrttodt, hrtgpno from hraact where hrttrtp IN (&#8216;p&#8217;,'l&#8217;)<br />
intersect select hrtemno, hrtdpcd, hrttodt, hrtgpno from hraact where hrttrtp = &#8216;m&#8217;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vibha</title>
		<link>http://blog.sqlauthority.com/2008/08/03/sql-server-2005-difference-between-intersect-and-inner-join-intersect-vs-inner-join/#comment-86146</link>
		<dc:creator><![CDATA[Vibha]]></dc:creator>
		<pubDate>Wed, 01 Sep 2010 14:04:08 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=772#comment-86146</guid>
		<description><![CDATA[Hi Pinal,

Please tell me, in comparision between Intersect and Inner join with distinct who takes less time in execution?]]></description>
		<content:encoded><![CDATA[<p>Hi Pinal,</p>
<p>Please tell me, in comparision between Intersect and Inner join with distinct who takes less time in execution?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rahul Bhargava</title>
		<link>http://blog.sqlauthority.com/2008/08/03/sql-server-2005-difference-between-intersect-and-inner-join-intersect-vs-inner-join/#comment-82993</link>
		<dc:creator><![CDATA[rahul Bhargava]]></dc:creator>
		<pubDate>Wed, 04 Aug 2010 12:30:03 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=772#comment-82993</guid>
		<description><![CDATA[Hi Pinal,

I have face one problem today when my client said me that replace ale in queries by Inner joins....I changed many of then in inner join but i stucked with some of few queries...My question is that is it that all the queries which are using &#039;IN&#039; can be replaced by &#039;Inner JOIN&#039; or not..
Or any way to find that query can be repalce by innner join or not
Thanks 
Rahul]]></description>
		<content:encoded><![CDATA[<p>Hi Pinal,</p>
<p>I have face one problem today when my client said me that replace ale in queries by Inner joins&#8230;.I changed many of then in inner join but i stucked with some of few queries&#8230;My question is that is it that all the queries which are using &#8216;IN&#8217; can be replaced by &#8216;Inner JOIN&#8217; or not..<br />
Or any way to find that query can be repalce by innner join or not<br />
Thanks<br />
Rahul</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ashish</title>
		<link>http://blog.sqlauthority.com/2008/08/03/sql-server-2005-difference-between-intersect-and-inner-join-intersect-vs-inner-join/#comment-81691</link>
		<dc:creator><![CDATA[Ashish]]></dc:creator>
		<pubDate>Mon, 26 Jul 2010 07:47:37 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=772#comment-81691</guid>
		<description><![CDATA[select name , &#039;000&#039;, id from &#039;your table name&#039;]]></description>
		<content:encoded><![CDATA[<p>select name , &#8217;000&#8242;, id from &#8216;your table name&#8217;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: harekrushna</title>
		<link>http://blog.sqlauthority.com/2008/08/03/sql-server-2005-difference-between-intersect-and-inner-join-intersect-vs-inner-join/#comment-81422</link>
		<dc:creator><![CDATA[harekrushna]]></dc:creator>
		<pubDate>Fri, 23 Jul 2010 15:40:45 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=772#comment-81422</guid>
		<description><![CDATA[hi pinal


let i have table with columns as
id          name        
1            s
2             c
3           d
 i have to extract value as soo1,c002,d003
just say me  how can i find it




regards
harekrushna]]></description>
		<content:encoded><![CDATA[<p>hi pinal</p>
<p>let i have table with columns as<br />
id          name<br />
1            s<br />
2             c<br />
3           d<br />
 i have to extract value as soo1,c002,d003<br />
just say me  how can i find it</p>
<p>regards<br />
harekrushna</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: raja</title>
		<link>http://blog.sqlauthority.com/2008/08/03/sql-server-2005-difference-between-intersect-and-inner-join-intersect-vs-inner-join/#comment-80458</link>
		<dc:creator><![CDATA[raja]]></dc:creator>
		<pubDate>Fri, 16 Jul 2010 04:56:34 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=772#comment-80458</guid>
		<description><![CDATA[hi,
    you are using sql server 2000, but the intersect key was interduced in sql server 2005, that why u got error]]></description>
		<content:encoded><![CDATA[<p>hi,<br />
    you are using sql server 2000, but the intersect key was interduced in sql server 2005, that why u got error</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ganeshkumar</title>
		<link>http://blog.sqlauthority.com/2008/08/03/sql-server-2005-difference-between-intersect-and-inner-join-intersect-vs-inner-join/#comment-77878</link>
		<dc:creator><![CDATA[Ganeshkumar]]></dc:creator>
		<pubDate>Mon, 28 Jun 2010 09:56:44 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=772#comment-77878</guid>
		<description><![CDATA[good example............]]></description>
		<content:encoded><![CDATA[<p>good example&#8230;&#8230;&#8230;&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: andy</title>
		<link>http://blog.sqlauthority.com/2008/08/03/sql-server-2005-difference-between-intersect-and-inner-join-intersect-vs-inner-join/#comment-70078</link>
		<dc:creator><![CDATA[andy]]></dc:creator>
		<pubDate>Mon, 10 May 2010 10:37:34 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=772#comment-70078</guid>
		<description><![CDATA[very usefull .. thx sir dave]]></description>
		<content:encoded><![CDATA[<p>very usefull .. thx sir dave</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Madhivanan</title>
		<link>http://blog.sqlauthority.com/2008/08/03/sql-server-2005-difference-between-intersect-and-inner-join-intersect-vs-inner-join/#comment-63946</link>
		<dc:creator><![CDATA[Madhivanan]]></dc:creator>
		<pubDate>Mon, 29 Mar 2010 11:28:48 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=772#comment-63946</guid>
		<description><![CDATA[Can you post the code that caused the error?]]></description>
		<content:encoded><![CDATA[<p>Can you post the code that caused the error?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Madhivanan</title>
		<link>http://blog.sqlauthority.com/2008/08/03/sql-server-2005-difference-between-intersect-and-inner-join-intersect-vs-inner-join/#comment-63251</link>
		<dc:creator><![CDATA[Madhivanan]]></dc:creator>
		<pubDate>Fri, 19 Mar 2010 08:20:25 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=772#comment-63251</guid>
		<description><![CDATA[You can use TOP operator
If you want pagination, make use of row_number() function
See point 4
http://beyondrelational.com/blogs/madhivanan/archive/2007/08/27/multipurpose-row-number-function.aspx]]></description>
		<content:encoded><![CDATA[<p>You can use TOP operator<br />
If you want pagination, make use of row_number() function<br />
See point 4<br />
<a href="http://beyondrelational.com/blogs/madhivanan/archive/2007/08/27/multipurpose-row-number-function.aspx" rel="nofollow">http://beyondrelational.com/blogs/madhivanan/archive/2007/08/27/multipurpose-row-number-function.aspx</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Madhivanan</title>
		<link>http://blog.sqlauthority.com/2008/08/03/sql-server-2005-difference-between-intersect-and-inner-join-intersect-vs-inner-join/#comment-63249</link>
		<dc:creator><![CDATA[Madhivanan]]></dc:creator>
		<pubDate>Fri, 19 Mar 2010 08:16:07 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=772#comment-63249</guid>
		<description><![CDATA[SQL Server help file has informations with example
Have a look at it]]></description>
		<content:encoded><![CDATA[<p>SQL Server help file has informations with example<br />
Have a look at it</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pramod</title>
		<link>http://blog.sqlauthority.com/2008/08/03/sql-server-2005-difference-between-intersect-and-inner-join-intersect-vs-inner-join/#comment-62129</link>
		<dc:creator><![CDATA[pramod]]></dc:creator>
		<pubDate>Thu, 04 Mar 2010 06:23:47 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=772#comment-62129</guid>
		<description><![CDATA[good article]]></description>
		<content:encoded><![CDATA[<p>good article</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: asy</title>
		<link>http://blog.sqlauthority.com/2008/08/03/sql-server-2005-difference-between-intersect-and-inner-join-intersect-vs-inner-join/#comment-59854</link>
		<dc:creator><![CDATA[asy]]></dc:creator>
		<pubDate>Sun, 17 Jan 2010 12:08:05 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=772#comment-59854</guid>
		<description><![CDATA[Hi,

 Very good example............]]></description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p> Very good example&#8230;&#8230;&#8230;&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>

