<?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>Notes of a SQL Server MVP and Database Administrator</description>
	<lastBuildDate>Sat, 21 Nov 2009 05:54:09 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: boy</title>
		<link>http://blog.sqlauthority.com/2007/03/10/sql-server-union-vs-union-all-which-is-better-for-performance/#comment-57515</link>
		<dc:creator>boy</dc:creator>
		<pubDate>Wed, 11 Nov 2009 06:44:57 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/03/10/union-vs-union-all-which-is-better-for-performance/#comment-57515</guid>
		<description>Hi Tejas,

thank you...works fine for me!</description>
		<content:encoded><![CDATA[<p>Hi Tejas,</p>
<p>thank you&#8230;works fine for me!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tejas Shah</title>
		<link>http://blog.sqlauthority.com/2007/03/10/sql-server-union-vs-union-all-which-is-better-for-performance/#comment-57486</link>
		<dc:creator>Tejas Shah</dc:creator>
		<pubDate>Tue, 10 Nov 2009 10:58:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/03/10/union-vs-union-all-which-is-better-for-performance/#comment-57486</guid>
		<description>Hi,

Please find solution for your query:

DECLARE @T1 TABLE(i INT)
INSERT INTO @T1 VALUES(1)
INSERT INTO @T1 VALUES(2)
INSERT INTO @T1 VALUES(4)
INSERT INTO @T1 VALUES(6)
INSERT INTO @T1 VALUES(7)


DECLARE @T2 TABLE(j INT)
INSERT INTO @T2 VALUES(2)
INSERT INTO @T2 VALUES(3)
INSERT INTO @T2 VALUES(4)
INSERT INTO @T2 VALUES(5)
INSERT INTO @T2 VALUES(8)

;with CTE AS(
SELECT i
FROM @T1
UNION 
SELECT j AS i
FROM @T2
)
SELECT * 
FROM Cte
WHERE NOT EXISTS(
SELECT * 
FROM @T1 t1
INNER JOIN @T2 t2 ON i=j
WHERE t1.i= CTE.i
)
ORDER BY i

Let me know if you any questions.

Thanks,

Tejas</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Please find solution for your query:</p>
<p>DECLARE @T1 TABLE(i INT)<br />
INSERT INTO @T1 VALUES(1)<br />
INSERT INTO @T1 VALUES(2)<br />
INSERT INTO @T1 VALUES(4)<br />
INSERT INTO @T1 VALUES(6)<br />
INSERT INTO @T1 VALUES(7)</p>
<p>DECLARE @T2 TABLE(j INT)<br />
INSERT INTO @T2 VALUES(2)<br />
INSERT INTO @T2 VALUES(3)<br />
INSERT INTO @T2 VALUES(4)<br />
INSERT INTO @T2 VALUES(5)<br />
INSERT INTO @T2 VALUES(8)</p>
<p>;with CTE AS(<br />
SELECT i<br />
FROM @T1<br />
UNION<br />
SELECT j AS i<br />
FROM @T2<br />
)<br />
SELECT *<br />
FROM Cte<br />
WHERE NOT EXISTS(<br />
SELECT *<br />
FROM @T1 t1<br />
INNER JOIN @T2 t2 ON i=j<br />
WHERE t1.i= CTE.i<br />
)<br />
ORDER BY i</p>
<p>Let me know if you any questions.</p>
<p>Thanks,</p>
<p>Tejas</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: boy</title>
		<link>http://blog.sqlauthority.com/2007/03/10/sql-server-union-vs-union-all-which-is-better-for-performance/#comment-57479</link>
		<dc:creator>boy</dc:creator>
		<pubDate>Tue, 10 Nov 2009 09:03:38 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/03/10/union-vs-union-all-which-is-better-for-performance/#comment-57479</guid>
		<description>hi!

pls can you show me how to query in two table that are not match with each other?

sampl data:


table 1-----1,2,4,6,7

table 2-----2,3,4,5,8


will return----1,3,5,6,7,8

pls..pls..pls....</description>
		<content:encoded><![CDATA[<p>hi!</p>
<p>pls can you show me how to query in two table that are not match with each other?</p>
<p>sampl data:</p>
<p>table 1&#8212;&#8211;1,2,4,6,7</p>
<p>table 2&#8212;&#8211;2,3,4,5,8</p>
<p>will return&#8212;-1,3,5,6,7,8</p>
<p>pls..pls..pls&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Venu</title>
		<link>http://blog.sqlauthority.com/2007/03/10/sql-server-union-vs-union-all-which-is-better-for-performance/#comment-56550</link>
		<dc:creator>Venu</dc:creator>
		<pubDate>Fri, 09 Oct 2009 04:32:44 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/03/10/union-vs-union-all-which-is-better-for-performance/#comment-56550</guid>
		<description>Can we use Where condtion after Union or Union all statements, Like as below. Coz i need to query some thin like below. PLease help me in this.

create table table1
(
id1 int,
name1 varchar(50) 
)
go
insert into table1 values(1,&#039;venu&#039;)
insert into table1 values(2,&#039;gopal&#039;)
insert into table1 values(3,&#039;hari&#039;)
insert into table1 values(4,&#039;prasad&#039;)
insert into table1 values(5,&#039;balu&#039;)
go
create table table2
(
id2 int,
name2 varchar(50) 
)
go
insert into table1 values(1,&#039;Gopal&#039;)
insert into table1 values(20,&#039;fadfl&#039;)
insert into table1 values(3,&#039;Prasad&#039;)
insert into table1 values(40,&#039;asdfasd&#039;)
insert into table1 values(50,&#039;dfsd&#039;)

create view myview
as
select name1 from table1
union all
select name2 from table2
where table1.id1 = table2.id2</description>
		<content:encoded><![CDATA[<p>Can we use Where condtion after Union or Union all statements, Like as below. Coz i need to query some thin like below. PLease help me in this.</p>
<p>create table table1<br />
(<br />
id1 int,<br />
name1 varchar(50)<br />
)<br />
go<br />
insert into table1 values(1,&#8217;venu&#8217;)<br />
insert into table1 values(2,&#8217;gopal&#8217;)<br />
insert into table1 values(3,&#8217;hari&#8217;)<br />
insert into table1 values(4,&#8217;prasad&#8217;)<br />
insert into table1 values(5,&#8217;balu&#8217;)<br />
go<br />
create table table2<br />
(<br />
id2 int,<br />
name2 varchar(50)<br />
)<br />
go<br />
insert into table1 values(1,&#8217;Gopal&#8217;)<br />
insert into table1 values(20,&#8217;fadfl&#8217;)<br />
insert into table1 values(3,&#8217;Prasad&#8217;)<br />
insert into table1 values(40,&#8217;asdfasd&#8217;)<br />
insert into table1 values(50,&#8217;dfsd&#8217;)</p>
<p>create view myview<br />
as<br />
select name1 from table1<br />
union all<br />
select name2 from table2<br />
where table1.id1 = table2.id2</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raj Kumar Rai</title>
		<link>http://blog.sqlauthority.com/2007/03/10/sql-server-union-vs-union-all-which-is-better-for-performance/#comment-56182</link>
		<dc:creator>Raj Kumar Rai</dc:creator>
		<pubDate>Sat, 26 Sep 2009 04:39:37 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/03/10/union-vs-union-all-which-is-better-for-performance/#comment-56182</guid>
		<description>thanks to sugest me.I had hope for response but it will surly ,you have proved it.</description>
		<content:encoded><![CDATA[<p>thanks to sugest me.I had hope for response but it will surly ,you have proved it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian Tkatch</title>
		<link>http://blog.sqlauthority.com/2007/03/10/sql-server-union-vs-union-all-which-is-better-for-performance/#comment-56173</link>
		<dc:creator>Brian Tkatch</dc:creator>
		<pubDate>Fri, 25 Sep 2009 17:11:10 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/03/10/union-vs-union-all-which-is-better-for-performance/#comment-56173</guid>
		<description>@Raj Kumar Rai

There is no guaranteed order without an ORDER BY clause in the statement. Though, you should be able to provide an ORDER BY that satisfies your requirements.</description>
		<content:encoded><![CDATA[<p>@Raj Kumar Rai</p>
<p>There is no guaranteed order without an ORDER BY clause in the statement. Though, you should be able to provide an ORDER BY that satisfies your requirements.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raj Kumar Rai</title>
		<link>http://blog.sqlauthority.com/2007/03/10/sql-server-union-vs-union-all-which-is-better-for-performance/#comment-56159</link>
		<dc:creator>Raj Kumar Rai</dc:creator>
		<pubDate>Fri, 25 Sep 2009 10:26:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/03/10/union-vs-union-all-which-is-better-for-performance/#comment-56159</guid>
		<description>Hi!
i am using UNION in my program where i want that union shoud not auto arrange the order since its default order is imp for me.

ex   table1
            area  1.5
      table 2
                  area 1.2
      table 3
                 area 2.3

after union of these result comes like

area 1.2
area 1.5
area 2.3 


i want i should come like

 area  1.5
 area 1.2
area 2.3 

what should exact querry.
pls help me.</description>
		<content:encoded><![CDATA[<p>Hi!<br />
i am using UNION in my program where i want that union shoud not auto arrange the order since its default order is imp for me.</p>
<p>ex   table1<br />
            area  1.5<br />
      table 2<br />
                  area 1.2<br />
      table 3<br />
                 area 2.3</p>
<p>after union of these result comes like</p>
<p>area 1.2<br />
area 1.5<br />
area 2.3 </p>
<p>i want i should come like</p>
<p> area  1.5<br />
 area 1.2<br />
area 2.3 </p>
<p>what should exact querry.<br />
pls help me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rajesh Mhaisne-Patil</title>
		<link>http://blog.sqlauthority.com/2007/03/10/sql-server-union-vs-union-all-which-is-better-for-performance/#comment-56052</link>
		<dc:creator>Rajesh Mhaisne-Patil</dc:creator>
		<pubDate>Tue, 22 Sep 2009 08:56:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/03/10/union-vs-union-all-which-is-better-for-performance/#comment-56052</guid>
		<description>Hi,
 
     Best answer thanx a lot man.


Regards, 

 Mr. Rajesh Mhaisne
Software Engineer &#124; Pune 

 
The word &quot;IMPOSSIBLE&quot; Says &#039;I M&#039; &quot;POSSIBLE&quot;.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>     Best answer thanx a lot man.</p>
<p>Regards, </p>
<p> Mr. Rajesh Mhaisne<br />
Software Engineer | Pune </p>
<p>The word &#8220;IMPOSSIBLE&#8221; Says &#8216;I M&#8217; &#8220;POSSIBLE&#8221;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vihanga</title>
		<link>http://blog.sqlauthority.com/2007/03/10/sql-server-union-vs-union-all-which-is-better-for-performance/#comment-55085</link>
		<dc:creator>vihanga</dc:creator>
		<pubDate>Fri, 21 Aug 2009 08:42:34 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/03/10/union-vs-union-all-which-is-better-for-performance/#comment-55085</guid>
		<description>Thanks a lot
If you Can represent it with a nice graph people can understand easily</description>
		<content:encoded><![CDATA[<p>Thanks a lot<br />
If you Can represent it with a nice graph people can understand easily</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jennifer</title>
		<link>http://blog.sqlauthority.com/2007/03/10/sql-server-union-vs-union-all-which-is-better-for-performance/#comment-55079</link>
		<dc:creator>Jennifer</dc:creator>
		<pubDate>Fri, 21 Aug 2009 06:30:15 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/03/10/union-vs-union-all-which-is-better-for-performance/#comment-55079</guid>
		<description>Hi all,

Is it possible to use if ...else condition with union all... its throwing an exception Msg 156, Level 15, State 1, Line 41
Incorrect syntax near the keyword &#039;if&#039;.

Sample query
if(@1stHearingdate is not NULL)
BEGIN
Select 1 as &#039;Week No&#039;, convert(varchar(100),Hrgdatetime,101) as &#039;HearingDate&#039;, count(Hrgid) &#039;No of hearing&#039;,&#039;Remarks&#039;
from 
Hearing 
where convert(varchar(100),Hrgdatetime,101) = convert(varchar(100),@1stHearingdate,101)
group by  convert(varchar(100),Hrgdatetime,101)
END
else
Select 1 as &#039;Week No&#039;,convert(varchar(100),@1stHearingdate,101),0,&#039;Remarks&#039;

union all

if(@2ndHearingdate is not NULL)
BEGIN
Select 1 as &#039;Week No&#039;, convert(varchar(100),Hrgdatetime,101) as &#039;HearingDate&#039;, count(Hrgid) &#039;No of hearing&#039;,&#039;Remarks&#039;
from 
Hearing 
where convert(varchar(100),Hrgdatetime,101) = convert(varchar(100),@2ndHearingdate,101)
group by  convert(varchar(100),Hrgdatetime,101)
END
else
Select 1 as &#039;Week No&#039;,convert(varchar(100),@2ndHearingdate,101),0,&#039;Remarks&#039;</description>
		<content:encoded><![CDATA[<p>Hi all,</p>
<p>Is it possible to use if &#8230;else condition with union all&#8230; its throwing an exception Msg 156, Level 15, State 1, Line 41<br />
Incorrect syntax near the keyword &#8216;if&#8217;.</p>
<p>Sample query<br />
if(@1stHearingdate is not NULL)<br />
BEGIN<br />
Select 1 as &#8216;Week No&#8217;, convert(varchar(100),Hrgdatetime,101) as &#8216;HearingDate&#8217;, count(Hrgid) &#8216;No of hearing&#8217;,'Remarks&#8217;<br />
from<br />
Hearing<br />
where convert(varchar(100),Hrgdatetime,101) = convert(varchar(100),@1stHearingdate,101)<br />
group by  convert(varchar(100),Hrgdatetime,101)<br />
END<br />
else<br />
Select 1 as &#8216;Week No&#8217;,convert(varchar(100),@1stHearingdate,101),0,&#8217;Remarks&#8217;</p>
<p>union all</p>
<p>if(@2ndHearingdate is not NULL)<br />
BEGIN<br />
Select 1 as &#8216;Week No&#8217;, convert(varchar(100),Hrgdatetime,101) as &#8216;HearingDate&#8217;, count(Hrgid) &#8216;No of hearing&#8217;,'Remarks&#8217;<br />
from<br />
Hearing<br />
where convert(varchar(100),Hrgdatetime,101) = convert(varchar(100),@2ndHearingdate,101)<br />
group by  convert(varchar(100),Hrgdatetime,101)<br />
END<br />
else<br />
Select 1 as &#8216;Week No&#8217;,convert(varchar(100),@2ndHearingdate,101),0,&#8217;Remarks&#8217;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pady</title>
		<link>http://blog.sqlauthority.com/2007/03/10/sql-server-union-vs-union-all-which-is-better-for-performance/#comment-54384</link>
		<dc:creator>Pady</dc:creator>
		<pubDate>Mon, 03 Aug 2009 11:45:07 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/03/10/union-vs-union-all-which-is-better-for-performance/#comment-54384</guid>
		<description>Hi,
This have help me a lot.
Regards,
Pady.</description>
		<content:encoded><![CDATA[<p>Hi,<br />
This have help me a lot.<br />
Regards,<br />
Pady.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian Tkatch</title>
		<link>http://blog.sqlauthority.com/2007/03/10/sql-server-union-vs-union-all-which-is-better-for-performance/#comment-54201</link>
		<dc:creator>Brian Tkatch</dc:creator>
		<pubDate>Wed, 29 Jul 2009 11:43:28 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/03/10/union-vs-union-all-which-is-better-for-performance/#comment-54201</guid>
		<description>@Ranjani

To get the range, use a GROUP BY with MIN() and MAX()

The date would be interesting, because it may be multiple months or even years. Given the example provided (the three records) this should work:

WITH
	Data([Project date], trench)
AS
	(
	 SELECT &#039;10-12-2009&#039;, 1 UNION ALL
	 SELECT &#039;11-12-2009&#039;, 1 UNION ALL
	 SELECT &#039;12-12-2009&#039;, 1
	)
SELECT
		CAST(DAY(MIN([Project date])) AS VARCHAR(2))
		+ &#039;-&#039;
		+ CAST(DAY(MAX([Project date])) AS VARCHAR(2)) 
		+ &#039; &#039;
		+ LEFT(DATENAME(m, MAX([Project date])), 3)
		+ &#039; &#039;
		+ CAST(YEAR(MAX([Project date])) AS VARCHAR(4))
FROM
		Data
GROUP BY
		trench;

Note the date format will depend on what it is set to. For the US, all three dates are the 12th, but the month changes. Which is not what you intended.</description>
		<content:encoded><![CDATA[<p>@Ranjani</p>
<p>To get the range, use a GROUP BY with MIN() and MAX()</p>
<p>The date would be interesting, because it may be multiple months or even years. Given the example provided (the three records) this should work:</p>
<p>WITH<br />
	Data([Project date], trench)<br />
AS<br />
	(<br />
	 SELECT &#8216;10-12-2009&#8242;, 1 UNION ALL<br />
	 SELECT &#8216;11-12-2009&#8242;, 1 UNION ALL<br />
	 SELECT &#8216;12-12-2009&#8242;, 1<br />
	)<br />
SELECT<br />
		CAST(DAY(MIN([Project date])) AS VARCHAR(2))<br />
		+ &#8216;-&#8217;<br />
		+ CAST(DAY(MAX([Project date])) AS VARCHAR(2))<br />
		+ &#8216; &#8216;<br />
		+ LEFT(DATENAME(m, MAX([Project date])), 3)<br />
		+ &#8216; &#8216;<br />
		+ CAST(YEAR(MAX([Project date])) AS VARCHAR(4))<br />
FROM<br />
		Data<br />
GROUP BY<br />
		trench;</p>
<p>Note the date format will depend on what it is set to. For the US, all three dates are the 12th, but the month changes. Which is not what you intended.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ranjani Rajagopalan</title>
		<link>http://blog.sqlauthority.com/2007/03/10/sql-server-union-vs-union-all-which-is-better-for-performance/#comment-54183</link>
		<dc:creator>Ranjani Rajagopalan</dc:creator>
		<pubDate>Wed, 29 Jul 2009 04:55:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/03/10/union-vs-union-all-which-is-better-for-performance/#comment-54183</guid>
		<description>Hi Pinal,

I have 2 columns Project date and trench. I want to display the date as range if the trench value is same. For eg:
Project date have three values 10-12-2009,11-12-2009,12-12-2009 and all the three have same trench value 1.

Now my requirement is i need to show them as 
10-12 Dec 2009.

I am trying with Union so far not successful.

Can someone tell me how to achieve this.</description>
		<content:encoded><![CDATA[<p>Hi Pinal,</p>
<p>I have 2 columns Project date and trench. I want to display the date as range if the trench value is same. For eg:<br />
Project date have three values 10-12-2009,11-12-2009,12-12-2009 and all the three have same trench value 1.</p>
<p>Now my requirement is i need to show them as<br />
10-12 Dec 2009.</p>
<p>I am trying with Union so far not successful.</p>
<p>Can someone tell me how to achieve this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ramana</title>
		<link>http://blog.sqlauthority.com/2007/03/10/sql-server-union-vs-union-all-which-is-better-for-performance/#comment-52971</link>
		<dc:creator>Ramana</dc:creator>
		<pubDate>Fri, 12 Jun 2009 10:25:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/03/10/union-vs-union-all-which-is-better-for-performance/#comment-52971</guid>
		<description>In the Result Set shown above for the UNION ALL result, the second Sixth will not come.</description>
		<content:encoded><![CDATA[<p>In the Result Set shown above for the UNION ALL result, the second Sixth will not come.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Manish Buhecha</title>
		<link>http://blog.sqlauthority.com/2007/03/10/sql-server-union-vs-union-all-which-is-better-for-performance/#comment-52962</link>
		<dc:creator>Manish Buhecha</dc:creator>
		<pubDate>Fri, 12 Jun 2009 06:26:41 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/03/10/union-vs-union-all-which-is-better-for-performance/#comment-52962</guid>
		<description>Oh,... How great these less lines explains..

Really great work...</description>
		<content:encoded><![CDATA[<p>Oh,&#8230; How great these less lines explains..</p>
<p>Really great work&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pinaldave</title>
		<link>http://blog.sqlauthority.com/2007/03/10/sql-server-union-vs-union-all-which-is-better-for-performance/#comment-51600</link>
		<dc:creator>pinaldave</dc:creator>
		<pubDate>Wed, 06 May 2009 12:06:17 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/03/10/union-vs-union-all-which-is-better-for-performance/#comment-51600</guid>
		<description>@Brian Tkatch,

Great!</description>
		<content:encoded><![CDATA[<p>@Brian Tkatch,</p>
<p>Great!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian Tkatch</title>
		<link>http://blog.sqlauthority.com/2007/03/10/sql-server-union-vs-union-all-which-is-better-for-performance/#comment-51594</link>
		<dc:creator>Brian Tkatch</dc:creator>
		<pubDate>Wed, 06 May 2009 11:29:50 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/03/10/union-vs-union-all-which-is-better-for-performance/#comment-51594</guid>
		<description>@Adres

 What is the problem?

SELECT ... FROM T1
UNION ALL
SELECT ... FROM T2
UNION ALL
SELECT ... FROM T3
UNION ALL
SELECT ... FROM T4
UNION ALL
SELECT ... FROM T5</description>
		<content:encoded><![CDATA[<p>@Adres</p>
<p> What is the problem?</p>
<p>SELECT &#8230; FROM T1<br />
UNION ALL<br />
SELECT &#8230; FROM T2<br />
UNION ALL<br />
SELECT &#8230; FROM T3<br />
UNION ALL<br />
SELECT &#8230; FROM T4<br />
UNION ALL<br />
SELECT &#8230; FROM T5</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andres</title>
		<link>http://blog.sqlauthority.com/2007/03/10/sql-server-union-vs-union-all-which-is-better-for-performance/#comment-51577</link>
		<dc:creator>Andres</dc:creator>
		<pubDate>Wed, 06 May 2009 01:46:58 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/03/10/union-vs-union-all-which-is-better-for-performance/#comment-51577</guid>
		<description>Hello!!
I have used union all for two tables and worked very well. Now how I can do it for 5 or more. I am new. Please help me.</description>
		<content:encoded><![CDATA[<p>Hello!!<br />
I have used union all for two tables and worked very well. Now how I can do it for 5 or more. I am new. Please help me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Senthil Kumar.B</title>
		<link>http://blog.sqlauthority.com/2007/03/10/sql-server-union-vs-union-all-which-is-better-for-performance/#comment-51380</link>
		<dc:creator>Senthil Kumar.B</dc:creator>
		<pubDate>Wed, 29 Apr 2009 07:01:08 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/03/10/union-vs-union-all-which-is-better-for-performance/#comment-51380</guid>
		<description>Hi- thanks - its very use full for me</description>
		<content:encoded><![CDATA[<p>Hi- thanks &#8211; its very use full for me</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://blog.sqlauthority.com/2007/03/10/sql-server-union-vs-union-all-which-is-better-for-performance/#comment-51370</link>
		<dc:creator>David</dc:creator>
		<pubDate>Tue, 28 Apr 2009 18:49:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/03/10/union-vs-union-all-which-is-better-for-performance/#comment-51370</guid>
		<description>Hi - thanks for this - very useful and concise - I haven&#039;t come across a better comparisson that&#039;s been this easy to follow</description>
		<content:encoded><![CDATA[<p>Hi &#8211; thanks for this &#8211; very useful and concise &#8211; I haven&#8217;t come across a better comparisson that&#8217;s been this easy to follow</p>
]]></content:encoded>
	</item>
</channel>
</rss>
