<?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; 2008 &#8211; Introduction to Merge Statement &#8211; One Statement for INSERT, UPDATE, DELETE</title>
	<atom:link href="http://blog.sqlauthority.com/2008/08/28/sql-server-2008-introduction-to-merge-statement-one-statement-for-insert-update-delete/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2008/08/28/sql-server-2008-introduction-to-merge-statement-one-statement-for-insert-update-delete/</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: Ruchika</title>
		<link>http://blog.sqlauthority.com/2008/08/28/sql-server-2008-introduction-to-merge-statement-one-statement-for-insert-update-delete/#comment-57518</link>
		<dc:creator>Ruchika</dc:creator>
		<pubDate>Wed, 11 Nov 2009 08:00:27 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=881#comment-57518</guid>
		<description>Hi Pinal Dave,
really great information!!
please tell me how to merge data into two table 
like newtable has data for table1 and table2
table1 and table2 has matching columns

so how i&#039;ll fetch table1&#039;s new indent value to insert record for it into table2
--
thanks in advance</description>
		<content:encoded><![CDATA[<p>Hi Pinal Dave,<br />
really great information!!<br />
please tell me how to merge data into two table<br />
like newtable has data for table1 and table2<br />
table1 and table2 has matching columns</p>
<p>so how i&#8217;ll fetch table1&#8217;s new indent value to insert record for it into table2<br />
&#8211;<br />
thanks in advance</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tief</title>
		<link>http://blog.sqlauthority.com/2008/08/28/sql-server-2008-introduction-to-merge-statement-one-statement-for-insert-update-delete/#comment-53496</link>
		<dc:creator>Tief</dc:creator>
		<pubDate>Tue, 07 Jul 2009 00:55:19 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=881#comment-53496</guid>
		<description>Can you cancel or stop a MERGE statement ? What if I need to Merge 2 Huge tables and then for some reason, I would like to cancel the curent operation. Is this possible ? Can I Rollback ?  Thanks</description>
		<content:encoded><![CDATA[<p>Can you cancel or stop a MERGE statement ? What if I need to Merge 2 Huge tables and then for some reason, I would like to cancel the curent operation. Is this possible ? Can I Rollback ?  Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dinesh</title>
		<link>http://blog.sqlauthority.com/2008/08/28/sql-server-2008-introduction-to-merge-statement-one-statement-for-insert-update-delete/#comment-50954</link>
		<dc:creator>dinesh</dc:creator>
		<pubDate>Tue, 14 Apr 2009 07:07:52 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=881#comment-50954</guid>
		<description>thenqq Imran :) 

one more doubt ,is it possbile to combine the 2 tables into a new table .. The join keyword is only selecting the information.</description>
		<content:encoded><![CDATA[<p>thenqq Imran :) </p>
<p>one more doubt ,is it possbile to combine the 2 tables into a new table .. The join keyword is only selecting the information.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Imran Mohammed</title>
		<link>http://blog.sqlauthority.com/2008/08/28/sql-server-2008-introduction-to-merge-statement-one-statement-for-insert-update-delete/#comment-50912</link>
		<dc:creator>Imran Mohammed</dc:creator>
		<pubDate>Mon, 13 Apr 2009 04:52:26 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=881#comment-50912</guid>
		<description>@dinesh.

Use full outer join for tables 1 and table 2. You should have at least one column common in between these two tables. 

Sample Script

Select  A.cola, A.Colb, A.colc, B.colb, B.colc
FROM  Table1 A Full Outer Join Table2 B on A.cola = B.cola

Refer to this article for more details on Joins,

http://blog.sqlauthority.com/2009/04/13/sql-server-introduction-to-joins-basic-of-joins/

~ IM.</description>
		<content:encoded><![CDATA[<p>@dinesh.</p>
<p>Use full outer join for tables 1 and table 2. You should have at least one column common in between these two tables. </p>
<p>Sample Script</p>
<p>Select  A.cola, A.Colb, A.colc, B.colb, B.colc<br />
FROM  Table1 A Full Outer Join Table2 B on A.cola = B.cola</p>
<p>Refer to this article for more details on Joins,</p>
<p><a href="http://blog.sqlauthority.com/2009/04/13/sql-server-introduction-to-joins-basic-of-joins/" rel="nofollow">http://blog.sqlauthority.com/2009/04/13/sql-server-introduction-to-joins-basic-of-joins/</a></p>
<p>~ IM.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dinesh</title>
		<link>http://blog.sqlauthority.com/2008/08/28/sql-server-2008-introduction-to-merge-statement-one-statement-for-insert-update-delete/#comment-50892</link>
		<dc:creator>dinesh</dc:creator>
		<pubDate>Sun, 12 Apr 2009 17:50:22 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=881#comment-50892</guid>
		<description>How to merge 2 tables ... eg : Table1  and Table2 , these two tables should be merged into Table3 .. means creating this new table3 contaning the data of table1 and table2</description>
		<content:encoded><![CDATA[<p>How to merge 2 tables &#8230; eg : Table1  and Table2 , these two tables should be merged into Table3 .. means creating this new table3 contaning the data of table1 and table2</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SQL SERVER - 2008 - Interview Questions and Answers - Part 6 Journey to SQL Authority with Pinal Dave</title>
		<link>http://blog.sqlauthority.com/2008/08/28/sql-server-2008-introduction-to-merge-statement-one-statement-for-insert-update-delete/#comment-47477</link>
		<dc:creator>SQL SERVER - 2008 - Interview Questions and Answers - Part 6 Journey to SQL Authority with Pinal Dave</dc:creator>
		<pubDate>Thu, 26 Feb 2009 12:05:18 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=881#comment-47477</guid>
		<description>[...] What is MERGE Statement? MERGE is a new feature that provides an efficient way to perform multiple DML operations. In previous versions of SQL Server, we had to write separate statements to INSERT, UPDATE, or DELETE data based on certain conditions, but now, using MERGE statement we can include the logic of such data modifications in one statement that even checks when the data is matched then just update it and when unmatched then insert it. One of the most important advantages of MERGE statement is all the data is read and processed only once.  (Read More Here) [...]</description>
		<content:encoded><![CDATA[<p>[...] What is MERGE Statement? MERGE is a new feature that provides an efficient way to perform multiple DML operations. In previous versions of SQL Server, we had to write separate statements to INSERT, UPDATE, or DELETE data based on certain conditions, but now, using MERGE statement we can include the logic of such data modifications in one statement that even checks when the data is matched then just update it and when unmatched then insert it. One of the most important advantages of MERGE statement is all the data is read and processed only once.  (Read More Here) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: astmart</title>
		<link>http://blog.sqlauthority.com/2008/08/28/sql-server-2008-introduction-to-merge-statement-one-statement-for-insert-update-delete/#comment-45837</link>
		<dc:creator>astmart</dc:creator>
		<pubDate>Wed, 21 Jan 2009 12:07:50 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=881#comment-45837</guid>
		<description>Hi Pinal Dave,
Thanks for most of the very useful articles you write..Just something that still puzzles me and you might have the answer.
To be it seems 2008 MERGE statement and CDC perform the same function during the ETL process that is best used in SCD situations.
What i do see is CDC tracking and capturing data into a Different Table..
My question is do they perform different functions.

Thanks</description>
		<content:encoded><![CDATA[<p>Hi Pinal Dave,<br />
Thanks for most of the very useful articles you write..Just something that still puzzles me and you might have the answer.<br />
To be it seems 2008 MERGE statement and CDC perform the same function during the ETL process that is best used in SCD situations.<br />
What i do see is CDC tracking and capturing data into a Different Table..<br />
My question is do they perform different functions.</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Piyurkumar</title>
		<link>http://blog.sqlauthority.com/2008/08/28/sql-server-2008-introduction-to-merge-statement-one-statement-for-insert-update-delete/#comment-45713</link>
		<dc:creator>Piyurkumar</dc:creator>
		<pubDate>Sun, 18 Jan 2009 22:04:17 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=881#comment-45713</guid>
		<description>Thanks</description>
		<content:encoded><![CDATA[<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MANISH KHANDELWAL</title>
		<link>http://blog.sqlauthority.com/2008/08/28/sql-server-2008-introduction-to-merge-statement-one-statement-for-insert-update-delete/#comment-45540</link>
		<dc:creator>MANISH KHANDELWAL</dc:creator>
		<pubDate>Mon, 12 Jan 2009 05:55:38 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=881#comment-45540</guid>
		<description>Nice Article &amp; Nice Feature of SQL Server 2008


Thanx</description>
		<content:encoded><![CDATA[<p>Nice Article &amp; Nice Feature of SQL Server 2008</p>
<p>Thanx</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shashi</title>
		<link>http://blog.sqlauthority.com/2008/08/28/sql-server-2008-introduction-to-merge-statement-one-statement-for-insert-update-delete/#comment-44197</link>
		<dc:creator>Shashi</dc:creator>
		<pubDate>Thu, 13 Nov 2008 07:44:55 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=881#comment-44197</guid>
		<description>What if we want a conditional merge or insert 

Eg: if(condition = true)
(
insert into table1 values(select * from tableE) where ..
)
else
(

)

how does such things work, can u help me.

Thanks</description>
		<content:encoded><![CDATA[<p>What if we want a conditional merge or insert </p>
<p>Eg: if(condition = true)<br />
(<br />
insert into table1 values(select * from tableE) where ..<br />
)<br />
else<br />
(</p>
<p>)</p>
<p>how does such things work, can u help me.</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gaurav</title>
		<link>http://blog.sqlauthority.com/2008/08/28/sql-server-2008-introduction-to-merge-statement-one-statement-for-insert-update-delete/#comment-44155</link>
		<dc:creator>gaurav</dc:creator>
		<pubDate>Tue, 11 Nov 2008 11:31:58 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=881#comment-44155</guid>
		<description>can we transfer different combo box value into different tables at the database by using one one sql insert query</description>
		<content:encoded><![CDATA[<p>can we transfer different combo box value into different tables at the database by using one one sql insert query</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shankar</title>
		<link>http://blog.sqlauthority.com/2008/08/28/sql-server-2008-introduction-to-merge-statement-one-statement-for-insert-update-delete/#comment-43534</link>
		<dc:creator>Shankar</dc:creator>
		<pubDate>Mon, 06 Oct 2008 10:51:33 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=881#comment-43534</guid>
		<description>Nice article...I have one doubt...

Do we need to select StudentName in the Source Table like
&quot;SELECT StudentID,StudentName FROM StudentDetails&quot;, which is never used in the Join?</description>
		<content:encoded><![CDATA[<p>Nice article&#8230;I have one doubt&#8230;</p>
<p>Do we need to select StudentName in the Source Table like<br />
&#8220;SELECT StudentID,StudentName FROM StudentDetails&#8221;, which is never used in the Join?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
