<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.technet.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Comparing Column Values in T-SQL </title><link>http://blogs.technet.com/b/seanearp/archive/2006/12/14/comparing-column-values-in-t-sql.aspx</link><description>Okay… so here's the scenario. I have two different tables in a SQL Database, where I need to compare both tables, and find all values in Table B that do not exist in Table A. There are two ways to do this. One with a JOIN, and one with a "NOT EXISTS"</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Comparing Column Values in T-SQL </title><link>http://blogs.technet.com/b/seanearp/archive/2006/12/14/comparing-column-values-in-t-sql.aspx#2476942</link><pubDate>Fri, 16 Nov 2007 21:20:41 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:2476942</guid><dc:creator>Chuckster</dc:creator><description>&lt;p&gt;Excellent !!&lt;/p&gt;
&lt;p&gt;I've been wracking my brains for ages trying to figure out how to do this (new to SQL). I actually have to work out what does not exist in one table when compared to 2 others, but taking the above and allowing for the extra table has solved my problem.&lt;/p&gt;
&lt;p&gt;I had played around with LEFT OUTER JOIN, but did not consider the comparison with NULL !!&lt;/p&gt;
&lt;p&gt;Many thanks.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=2476942" width="1" height="1"&gt;</description></item></channel></rss>