<?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; Union vs. Union All &#8211; Which is better for performance?</title>
	<atom:link href="http://blog.sqlauthority.com/2007/03/10/sql-server-union-vs-union-all-which-is-better-for-performance/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2007/03/10/sql-server-union-vs-union-all-which-is-better-for-performance/</link>
	<description>Personal Notes of Pinal Dave</description>
	<lastBuildDate>Fri, 10 Feb 2012 02:12:04 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: shivendra mani tripathi</title>
		<link>http://blog.sqlauthority.com/2007/03/10/sql-server-union-vs-union-all-which-is-better-for-performance/#comment-202887</link>
		<dc:creator><![CDATA[shivendra mani tripathi]]></dc:creator>
		<pubDate>Wed, 23 Nov 2011 12:39:10 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/03/10/union-vs-union-all-which-is-better-for-performance/#comment-202887</guid>
		<description><![CDATA[Thanks dear madhivanan ...]]></description>
		<content:encoded><![CDATA[<p>Thanks dear madhivanan &#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/2007/03/10/sql-server-union-vs-union-all-which-is-better-for-performance/#comment-202841</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Wed, 23 Nov 2011 10:45:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/03/10/union-vs-union-all-which-is-better-for-performance/#comment-202841</guid>
		<description><![CDATA[This will get you to find out duplicates

Select col from table
group by col
having count(*)&gt;!]]></description>
		<content:encoded><![CDATA[<p>This will get you to find out duplicates</p>
<p>Select col from table<br />
group by col<br />
having count(*)&gt;!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shivendra mani tripathi</title>
		<link>http://blog.sqlauthority.com/2007/03/10/sql-server-union-vs-union-all-which-is-better-for-performance/#comment-202131</link>
		<dc:creator><![CDATA[shivendra mani tripathi]]></dc:creator>
		<pubDate>Tue, 22 Nov 2011 11:12:01 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/03/10/union-vs-union-all-which-is-better-for-performance/#comment-202131</guid>
		<description><![CDATA[hello everybody..
please assist me how to get only duplicate records from a table1 into a new table2..

thanks in advance sir..please guide me 
Shivendra]]></description>
		<content:encoded><![CDATA[<p>hello everybody..<br />
please assist me how to get only duplicate records from a table1 into a new table2..</p>
<p>thanks in advance sir..please guide me<br />
Shivendra</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dip</title>
		<link>http://blog.sqlauthority.com/2007/03/10/sql-server-union-vs-union-all-which-is-better-for-performance/#comment-183314</link>
		<dc:creator><![CDATA[Dip]]></dc:creator>
		<pubDate>Tue, 25 Oct 2011 10:24:34 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/03/10/union-vs-union-all-which-is-better-for-performance/#comment-183314</guid>
		<description><![CDATA[Union:1,2,3,4...]]></description>
		<content:encoded><![CDATA[<p>Union:1,2,3,4&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/2007/03/10/sql-server-union-vs-union-all-which-is-better-for-performance/#comment-178805</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Fri, 14 Oct 2011 12:44:20 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/03/10/union-vs-union-all-which-is-better-for-performance/#comment-178805</guid>
		<description><![CDATA[You need to post expected result from the above sample data. Also explain the logic]]></description>
		<content:encoded><![CDATA[<p>You need to post expected result from the above sample data. Also explain the logic</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rahul</title>
		<link>http://blog.sqlauthority.com/2007/03/10/sql-server-union-vs-union-all-which-is-better-for-performance/#comment-178662</link>
		<dc:creator><![CDATA[Rahul]]></dc:creator>
		<pubDate>Fri, 14 Oct 2011 06:53:53 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/03/10/union-vs-union-all-which-is-better-for-performance/#comment-178662</guid>
		<description><![CDATA[select  * from @T1 where i not in (select distinct * from @T2 )    union   
select  * from @T2 where j not in (select distinct * from @T1 )]]></description>
		<content:encoded><![CDATA[<p>select  * from @T1 where i not in (select distinct * from @T2 )    union<br />
select  * from @T2 where j not in (select distinct * from @T1 )</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rahul</title>
		<link>http://blog.sqlauthority.com/2007/03/10/sql-server-union-vs-union-all-which-is-better-for-performance/#comment-178659</link>
		<dc:creator><![CDATA[Rahul]]></dc:creator>
		<pubDate>Fri, 14 Oct 2011 06:52:23 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/03/10/union-vs-union-all-which-is-better-for-performance/#comment-178659</guid>
		<description><![CDATA[we can also do this with 

select distinct * from @T1 where i not in (select distinct * from @T2 )    union   
select distinct * from @T2 where j not in (select distinct * from @T1 ) order by 1 desc]]></description>
		<content:encoded><![CDATA[<p>we can also do this with </p>
<p>select distinct * from @T1 where i not in (select distinct * from @T2 )    union<br />
select distinct * from @T2 where j not in (select distinct * from @T1 ) order by 1 desc</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: guna</title>
		<link>http://blog.sqlauthority.com/2007/03/10/sql-server-union-vs-union-all-which-is-better-for-performance/#comment-178644</link>
		<dc:creator><![CDATA[guna]]></dc:creator>
		<pubDate>Fri, 14 Oct 2011 06:19:08 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/03/10/union-vs-union-all-which-is-better-for-performance/#comment-178644</guid>
		<description><![CDATA[PBillno    PurDate      Partyname     Tax   SBillno  SalDate   Partyname    Tax
-------------------------------------------------------------------------------------------------
1          2011-09-30 	  Raji	        14	  1       2011-09-30 Test	   0
2          2011-09-30 	 Testing	      55.57	  4       2011-10-10  Rajesh	1.60
4          2011-10-10   Kumar            0.00	  5       2011-10-10  Guna      29.40
5          2011-10-10	 Suji	        0.00	  6       2011-09-10   Ragu       0.80     
---------------------------------------------------------------------------------------------------

This is My Table ...
 
i Have PurDate Same to SalDate.. If Not Enough Then that SalDate Record Null Row..  

How do.. Please Help Me..]]></description>
		<content:encoded><![CDATA[<p>PBillno    PurDate      Partyname     Tax   SBillno  SalDate   Partyname    Tax<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
1          2011-09-30 	  Raji	        14	  1       2011-09-30 Test	   0<br />
2          2011-09-30 	 Testing	      55.57	  4       2011-10-10  Rajesh	1.60<br />
4          2011-10-10   Kumar            0.00	  5       2011-10-10  Guna      29.40<br />
5          2011-10-10	 Suji	        0.00	  6       2011-09-10   Ragu       0.80<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>This is My Table &#8230;</p>
<p>i Have PurDate Same to SalDate.. If Not Enough Then that SalDate Record Null Row..  </p>
<p>How do.. Please Help Me..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Krishna</title>
		<link>http://blog.sqlauthority.com/2007/03/10/sql-server-union-vs-union-all-which-is-better-for-performance/#comment-176759</link>
		<dc:creator><![CDATA[Krishna]]></dc:creator>
		<pubDate>Sun, 09 Oct 2011 11:00:37 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/03/10/union-vs-union-all-which-is-better-for-performance/#comment-176759</guid>
		<description><![CDATA[Krishna

Today i got different scenario where union is working better than union ALL.
One of the point astonished me while using UNION it is returning results in 20 sec where as it is taking more than 10 min]]></description>
		<content:encoded><![CDATA[<p>Krishna</p>
<p>Today i got different scenario where union is working better than union ALL.<br />
One of the point astonished me while using UNION it is returning results in 20 sec where as it is taking more than 10 min</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Prabahar C</title>
		<link>http://blog.sqlauthority.com/2007/03/10/sql-server-union-vs-union-all-which-is-better-for-performance/#comment-164872</link>
		<dc:creator><![CDATA[Prabahar C]]></dc:creator>
		<pubDate>Fri, 02 Sep 2011 18:54:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/03/10/union-vs-union-all-which-is-better-for-performance/#comment-164872</guid>
		<description><![CDATA[Good example for Unions.I have one union with 2 select statements,Does SQL consider it as one statement /2 statements?]]></description>
		<content:encoded><![CDATA[<p>Good example for Unions.I have one union with 2 select statements,Does SQL consider it as one statement /2 statements?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Craig</title>
		<link>http://blog.sqlauthority.com/2007/03/10/sql-server-union-vs-union-all-which-is-better-for-performance/#comment-155447</link>
		<dc:creator><![CDATA[Craig]]></dc:creator>
		<pubDate>Tue, 09 Aug 2011 17:15:54 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/03/10/union-vs-union-all-which-is-better-for-performance/#comment-155447</guid>
		<description><![CDATA[Once again you&#039;ve saved the day for me. Mr. Pinal Dave, you&#039;re columns have taught me more about SQL than ten books on the subject. Thank you!]]></description>
		<content:encoded><![CDATA[<p>Once again you&#8217;ve saved the day for me. Mr. Pinal Dave, you&#8217;re columns have taught me more about SQL than ten books on the subject. Thank you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SQL SERVER – Interview Questions and Answers – Frequently Asked Questions – Day 9 of 31 Journey to SQLAuthority</title>
		<link>http://blog.sqlauthority.com/2007/03/10/sql-server-union-vs-union-all-which-is-better-for-performance/#comment-147033</link>
		<dc:creator><![CDATA[SQL SERVER – Interview Questions and Answers – Frequently Asked Questions – Day 9 of 31 Journey to SQLAuthority]]></dc:creator>
		<pubDate>Sat, 09 Jul 2011 01:31:48 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/03/10/union-vs-union-all-which-is-better-for-performance/#comment-147033</guid>
		<description><![CDATA[[...] The difference between UNION and UNION ALL is that UNION ALL will not eliminate duplicate rows, instead it just pulls all rows from all the tables fitting your query specifics and combines them into a table. (Read more here) [...]]]></description>
		<content:encoded><![CDATA[<p>[...] The difference between UNION and UNION ALL is that UNION ALL will not eliminate duplicate rows, instead it just pulls all rows from all the tables fitting your query specifics and combines them into a table. (Read more here) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ismail</title>
		<link>http://blog.sqlauthority.com/2007/03/10/sql-server-union-vs-union-all-which-is-better-for-performance/#comment-137181</link>
		<dc:creator><![CDATA[Ismail]]></dc:creator>
		<pubDate>Sat, 28 May 2011 11:26:05 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/03/10/union-vs-union-all-which-is-better-for-performance/#comment-137181</guid>
		<description><![CDATA[I CAN&#039;T BELIEVE THAT USING &quot;UNION ALL&quot; BOOSTED MY QUERY AT A 500 % FASTER THAN &quot;UNION&quot;
THANK YOU VERY MUCH BROTHER.]]></description>
		<content:encoded><![CDATA[<p>I CAN&#8217;T BELIEVE THAT USING &#8220;UNION ALL&#8221; BOOSTED MY QUERY AT A 500 % FASTER THAN &#8220;UNION&#8221;<br />
THANK YOU VERY MUCH BROTHER.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rajivgandhi</title>
		<link>http://blog.sqlauthority.com/2007/03/10/sql-server-union-vs-union-all-which-is-better-for-performance/#comment-134235</link>
		<dc:creator><![CDATA[rajivgandhi]]></dc:creator>
		<pubDate>Fri, 13 May 2011 12:22:37 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/03/10/union-vs-union-all-which-is-better-for-performance/#comment-134235</guid>
		<description><![CDATA[can u explain savepoint in sq1 server 2008]]></description>
		<content:encoded><![CDATA[<p>can u explain savepoint in sq1 server 2008</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rajivgandhi</title>
		<link>http://blog.sqlauthority.com/2007/03/10/sql-server-union-vs-union-all-which-is-better-for-performance/#comment-134234</link>
		<dc:creator><![CDATA[rajivgandhi]]></dc:creator>
		<pubDate>Fri, 13 May 2011 12:21:09 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/03/10/union-vs-union-all-which-is-better-for-performance/#comment-134234</guid>
		<description><![CDATA[use of savepoint]]></description>
		<content:encoded><![CDATA[<p>use of savepoint</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nithin bhaktha</title>
		<link>http://blog.sqlauthority.com/2007/03/10/sql-server-union-vs-union-all-which-is-better-for-performance/#comment-131714</link>
		<dc:creator><![CDATA[nithin bhaktha]]></dc:creator>
		<pubDate>Thu, 28 Apr 2011 10:02:13 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/03/10/union-vs-union-all-which-is-better-for-performance/#comment-131714</guid>
		<description><![CDATA[Really good article...Understood the difference between both]]></description>
		<content:encoded><![CDATA[<p>Really good article&#8230;Understood the difference between both</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Imran Mohammed</title>
		<link>http://blog.sqlauthority.com/2007/03/10/sql-server-union-vs-union-all-which-is-better-for-performance/#comment-130812</link>
		<dc:creator><![CDATA[Imran Mohammed]]></dc:creator>
		<pubDate>Sun, 24 Apr 2011 05:52:19 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/03/10/union-vs-union-all-which-is-better-for-performance/#comment-130812</guid>
		<description><![CDATA[@manu

That&#039;s a typo, What you understood is right.

~IM.]]></description>
		<content:encoded><![CDATA[<p>@manu</p>
<p>That&#8217;s a typo, What you understood is right.</p>
<p>~IM.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: manu</title>
		<link>http://blog.sqlauthority.com/2007/03/10/sql-server-union-vs-union-all-which-is-better-for-performance/#comment-130541</link>
		<dc:creator><![CDATA[manu]]></dc:creator>
		<pubDate>Fri, 22 Apr 2011 14:25:10 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/03/10/union-vs-union-all-which-is-better-for-performance/#comment-130541</guid>
		<description><![CDATA[Hi Pinal,

If you have two tables.
First table : 1,2,3,4,5
Second table : 1,2,5,6

for Union All:
1,1,2,2,3,4,5,5,6

but you said 1,2,2,3,4,5,5,6

???]]></description>
		<content:encoded><![CDATA[<p>Hi Pinal,</p>
<p>If you have two tables.<br />
First table : 1,2,3,4,5<br />
Second table : 1,2,5,6</p>
<p>for Union All:<br />
1,1,2,2,3,4,5,5,6</p>
<p>but you said 1,2,2,3,4,5,5,6</p>
<p>???</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yuvraj Gautam</title>
		<link>http://blog.sqlauthority.com/2007/03/10/sql-server-union-vs-union-all-which-is-better-for-performance/#comment-123601</link>
		<dc:creator><![CDATA[Yuvraj Gautam]]></dc:creator>
		<pubDate>Thu, 17 Mar 2011 06:50:08 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/03/10/union-vs-union-all-which-is-better-for-performance/#comment-123601</guid>
		<description><![CDATA[@palkalaiselvan
use bulk insert to insert text file in sql 

  
CREATE TABLE [dbo].[empdata](
	[empid] [int] NOT NULL,
	[empname] [nvarchar](50) NULL,
	[empsalary] [int] NULL
) ON [PRIMARY]

 
BULK INSERT empdata FROM &#039;G:\notepad.txt&#039; WITH 
(
FIELDTERMINATOR =  &#039;\t&#039;, --Tab
ROWTERMINATOR =&#039;\n&#039;--New Row
)
 
select * from empdata]]></description>
		<content:encoded><![CDATA[<p>@palkalaiselvan<br />
use bulk insert to insert text file in sql </p>
<p>CREATE TABLE [dbo].[empdata](<br />
	[empid] [int] NOT NULL,<br />
	[empname] [nvarchar](50) NULL,<br />
	[empsalary] [int] NULL<br />
) ON [PRIMARY]</p>
<p>BULK INSERT empdata FROM &#8216;G:\notepad.txt&#8217; WITH<br />
(<br />
FIELDTERMINATOR =  &#8216;\t&#8217;, &#8211;Tab<br />
ROWTERMINATOR =&#8217;\n&#8217;&#8211;New Row<br />
)</p>
<p>select * from empdata</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/2007/03/10/sql-server-union-vs-union-all-which-is-better-for-performance/#comment-119135</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Fri, 18 Feb 2011 11:09:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/03/10/union-vs-union-all-which-is-better-for-performance/#comment-119135</guid>
		<description><![CDATA[Use Bulk insert
http://beyondrelational.com/blogs/madhivanan/archive/2010/03/17/bulk-insert-to-table-with-specific-columns.aspx]]></description>
		<content:encoded><![CDATA[<p>Use Bulk insert<br />
<a href="http://beyondrelational.com/blogs/madhivanan/archive/2010/03/17/bulk-insert-to-table-with-specific-columns.aspx" rel="nofollow">http://beyondrelational.com/blogs/madhivanan/archive/2010/03/17/bulk-insert-to-table-with-specific-columns.aspx</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: palkalaiselvan</title>
		<link>http://blog.sqlauthority.com/2007/03/10/sql-server-union-vs-union-all-which-is-better-for-performance/#comment-118898</link>
		<dc:creator><![CDATA[palkalaiselvan]]></dc:creator>
		<pubDate>Thu, 17 Feb 2011 01:21:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/03/10/union-vs-union-all-which-is-better-for-performance/#comment-118898</guid>
		<description><![CDATA[100	palkalai	30000
101	raja	5000
102	kumar	4900
103	murali	21000
104	sugumar	13000
105	gugan	8940
106	gobi	56000
107	dhilip	34000

I have records like this in my notepad or word. how can i insert all those records in SQL. send me the query..]]></description>
		<content:encoded><![CDATA[<p>100	palkalai	30000<br />
101	raja	5000<br />
102	kumar	4900<br />
103	murali	21000<br />
104	sugumar	13000<br />
105	gugan	8940<br />
106	gobi	56000<br />
107	dhilip	34000</p>
<p>I have records like this in my notepad or word. how can i insert all those records in SQL. send me the query..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: palkalaiselvan</title>
		<link>http://blog.sqlauthority.com/2007/03/10/sql-server-union-vs-union-all-which-is-better-for-performance/#comment-118895</link>
		<dc:creator><![CDATA[palkalaiselvan]]></dc:creator>
		<pubDate>Thu, 17 Feb 2011 00:58:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/03/10/union-vs-union-all-which-is-better-for-performance/#comment-118895</guid>
		<description><![CDATA[Hello sir,
   If i have a 1000 records in a pdf or word or notepad format. All my 1000 records having just 3 fields like eno,ename,esalary. 
   I also created table with same field in SQL 2005. By using only one single query i should insert all my 1000 records into the SQL.
Please send me the query for that.]]></description>
		<content:encoded><![CDATA[<p>Hello sir,<br />
   If i have a 1000 records in a pdf or word or notepad format. All my 1000 records having just 3 fields like eno,ename,esalary.<br />
   I also created table with same field in SQL 2005. By using only one single query i should insert all my 1000 records into the SQL.<br />
Please send me the query for that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James Collett</title>
		<link>http://blog.sqlauthority.com/2007/03/10/sql-server-union-vs-union-all-which-is-better-for-performance/#comment-97591</link>
		<dc:creator><![CDATA[James Collett]]></dc:creator>
		<pubDate>Wed, 03 Nov 2010 12:37:52 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/03/10/union-vs-union-all-which-is-better-for-performance/#comment-97591</guid>
		<description><![CDATA[I must say thanks for this article, which confirms how I *thought*  the UNION keyword was working. I feel guilty if I just leech knowledge from this page!]]></description>
		<content:encoded><![CDATA[<p>I must say thanks for this article, which confirms how I *thought*  the UNION keyword was working. I feel guilty if I just leech knowledge from this page!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: LamTang</title>
		<link>http://blog.sqlauthority.com/2007/03/10/sql-server-union-vs-union-all-which-is-better-for-performance/#comment-91022</link>
		<dc:creator><![CDATA[LamTang]]></dc:creator>
		<pubDate>Mon, 04 Oct 2010 09:25:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/03/10/union-vs-union-all-which-is-better-for-performance/#comment-91022</guid>
		<description><![CDATA[I have two table with a lot of record. Now I want get a view
So 
Case 1:
Select ... 
From table1
where....
UNION
Select...
From table2
where...

Case 2:
Select ... 
From table1
where....
UNION ALL
Select...
From table2
where...

Case3:
declare @tmpTable table(...)
Go
Insert into @tmpTable sSelect ... From table1 where....
Go
Insert into @tmpTable sSelect ... From table2 where....
Go
select * from @tmpTable
drop @tmpTable

Please help me! Which case is the best performance?]]></description>
		<content:encoded><![CDATA[<p>I have two table with a lot of record. Now I want get a view<br />
So<br />
Case 1:<br />
Select &#8230;<br />
From table1<br />
where&#8230;.<br />
UNION<br />
Select&#8230;<br />
From table2<br />
where&#8230;</p>
<p>Case 2:<br />
Select &#8230;<br />
From table1<br />
where&#8230;.<br />
UNION ALL<br />
Select&#8230;<br />
From table2<br />
where&#8230;</p>
<p>Case3:<br />
declare @tmpTable table(&#8230;)<br />
Go<br />
Insert into @tmpTable sSelect &#8230; From table1 where&#8230;.<br />
Go<br />
Insert into @tmpTable sSelect &#8230; From table2 where&#8230;.<br />
Go<br />
select * from @tmpTable<br />
drop @tmpTable</p>
<p>Please help me! Which case is the best performance?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: swetha</title>
		<link>http://blog.sqlauthority.com/2007/03/10/sql-server-union-vs-union-all-which-is-better-for-performance/#comment-85436</link>
		<dc:creator><![CDATA[swetha]]></dc:creator>
		<pubDate>Fri, 27 Aug 2010 13:39:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/03/10/union-vs-union-all-which-is-better-for-performance/#comment-85436</guid>
		<description><![CDATA[this is really good soln]]></description>
		<content:encoded><![CDATA[<p>this is really good soln</p>
]]></content:encoded>
	</item>
</channel>
</rss>

