﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Article Discussions / Article Discussions by Author / Discuss content posted by Douwe Miedema  / Show content differences between two tables/views  / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Tue, 21 May 2013 02:38:12 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Show content differences between two tables/views</title><link>http://www.sqlservercentral.com/Forums/Topic501242-1290-1.aspx</link><description>Using the Except operator, the following query returns any distinct values from TableA that are not also found in TableB.SELECT * FROM TableA EXCEPT SELECT * FROM TableBYou may also use union all to find differences from the one and the other side .... as follows:SELECT * FROM TableA EXCEPT SELECT * FROM TableBunoin allSELECT * FROM TableB EXCEPT SELECT * FROM TableA</description><pubDate>Sun, 05 Jul 2009 02:18:35 GMT</pubDate><dc:creator>m.gkountara</dc:creator></item><item><title>RE: Show content differences between two tables/views</title><link>http://www.sqlservercentral.com/Forums/Topic501242-1290-1.aspx</link><description>You could try,select *into Dfrom Awhere not exists (select 'x' from C where C.key=A.key)unionselect *into Dfrom Bwhere not exists (select 'x' from C where C.key=B.key)</description><pubDate>Thu, 16 Oct 2008 02:42:53 GMT</pubDate><dc:creator>dj.miedema</dc:creator></item><item><title>RE: Show content differences between two tables/views</title><link>http://www.sqlservercentral.com/Forums/Topic501242-1290-1.aspx</link><description>Hi Douwe,I am quite new to SQL and I have a need to create a table (TableD)which would contain contents of TableA that do not exist in TableC and combining with contents of TableB that do not exist in TableC. All the tables have same number of columns and also identical column names. Combination of column1,column2 and column3 would give a unique key identifier. TableC contains over 1,000,000 records while TableA and TableB about 2,000,000 and 4,000,000 respectively. Appreciate if you or other SQL gurus out there can assist me with creating a script to achieve this.Kind regards,Chris</description><pubDate>Thu, 16 Oct 2008 01:47:23 GMT</pubDate><dc:creator>ckafang</dc:creator></item><item><title>Show content differences between two tables/views </title><link>http://www.sqlservercentral.com/Forums/Topic501242-1290-1.aspx</link><description>Comments posted to this topic are about the item [B]&lt;A HREF="/scripts/content+difference+table/63049/"&gt;Show content differences between two tables/views &lt;/A&gt;[/B]</description><pubDate>Thu, 15 May 2008 06:36:30 GMT</pubDate><dc:creator>dj.miedema</dc:creator></item></channel></rss>