<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-1328514867467683594.post7848367277479092149..comments</id><updated>2011-03-23T10:32:11.009-07:00</updated><category term='wcf'/><category term='LINQ'/><category term='technology'/><category term='jQuery'/><category term='MySQL'/><category term='SQL'/><category term='TFS'/><category term='bug fixes'/><category term='windows azure'/><category term='unit testing'/><category term='asp.net'/><category term='google charts'/><category term='code snippets'/><category term='general'/><category term='church management'/><category term='IIS'/><category term='asp.net mvc'/><title type='text'>Comments on Schnieds Blog: Creating a SQL Exclusion Table Using LEFT JOIN</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://www.schnieds.com/feeds/7848367277479092149/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1328514867467683594/7848367277479092149/comments/default'/><link rel='alternate' type='text/html' href='http://www.schnieds.com/2009/03/creating-sql-exclusion-table-using-left.html'/><author><name>Aaron Schnieder</name><uri>http://www.blogger.com/profile/13203827771563617211</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>3</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1328514867467683594.post-8984292222585600123</id><published>2010-08-12T11:13:04.284-07:00</published><updated>2010-08-12T11:13:04.284-07:00</updated><title type='text'>Great Post! Im 90% what I was trying to do. Basica...</title><content type='html'>Great Post! Im 90% what I was trying to do. Basically I have &lt;br /&gt;a master [AddressBook] table that&lt;br /&gt;5 people use. So I have a [Users] table. I also have a master [Exclusion] table. The [AddressBook] table has no reference to an individual user, all users would see all address.&lt;br /&gt;If any user desires not to see an&lt;br /&gt;individual name, I want to put that in the [Exclusion] table.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1328514867467683594/7848367277479092149/comments/default/8984292222585600123'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1328514867467683594/7848367277479092149/comments/default/8984292222585600123'/><link rel='alternate' type='text/html' href='http://www.schnieds.com/2009/03/creating-sql-exclusion-table-using-left.html?showComment=1281636784284#c8984292222585600123' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.schnieds.com/2009/03/creating-sql-exclusion-table-using-left.html' ref='tag:blogger.com,1999:blog-1328514867467683594.post-7848367277479092149' source='http://www.blogger.com/feeds/1328514867467683594/posts/default/7848367277479092149' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-589613986'/></entry><entry><id>tag:blogger.com,1999:blog-1328514867467683594.post-4401112579576747308</id><published>2010-01-23T15:43:56.651-08:00</published><updated>2010-01-23T15:43:56.651-08:00</updated><title type='text'>I believe this is called a &lt;a href="http://math.co...</title><content type='html'>I believe this is called a &lt;a href="http://math.comsci.us/sets/difference.html" rel="nofollow"&gt;Set Difference&lt;/a&gt; algorithm. &lt;br /&gt;&lt;br /&gt;I&amp;#39;ve seen several approaches, but your approach, the JOIN + IS NULL on the LEFT JOINed table, is my preference. I suspect your approach would be faster than the NOT EXISTS sub-query approach as it doesn&amp;#39;t require a per row subquery and NOT EXISTS can be very slow on large tables, though I haven&amp;#39;t run any performance tests myself. &lt;br /&gt;&lt;br /&gt;On a related note, you can also get the &lt;a href="http://msdn.microsoft.com/en-us/library/bb397894.aspx" rel="nofollow"&gt;set difference of two list with Linq&lt;/a&gt; using &lt;a href="http://msdn.microsoft.com/en-us/library/bb300779.aspx" rel="nofollow"&gt;Except()&lt;/a&gt;.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1328514867467683594/7848367277479092149/comments/default/4401112579576747308'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1328514867467683594/7848367277479092149/comments/default/4401112579576747308'/><link rel='alternate' type='text/html' href='http://www.schnieds.com/2009/03/creating-sql-exclusion-table-using-left.html?showComment=1264290236651#c4401112579576747308' title=''/><author><name>Adam Anderson</name><uri>http://www.blogger.com/profile/17078340429103638232</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.schnieds.com/2009/03/creating-sql-exclusion-table-using-left.html' ref='tag:blogger.com,1999:blog-1328514867467683594.post-7848367277479092149' source='http://www.blogger.com/feeds/1328514867467683594/posts/default/7848367277479092149' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-779787853'/></entry><entry><id>tag:blogger.com,1999:blog-1328514867467683594.post-3189779318137012863</id><published>2010-01-13T09:16:07.488-08:00</published><updated>2010-01-13T09:16:07.488-08:00</updated><title type='text'>Provided I&amp;#39;m reading it right, there&amp;#39;s an ...</title><content type='html'>Provided I&amp;#39;m reading it right, there&amp;#39;s an easier way: NOT EXISTS.  Performance-wise it should perform like that of the join, rather than that of NOT IN.&lt;br /&gt;&lt;br /&gt;select * from a where NOT EXISTS (select * from b where a.key = b.key)</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1328514867467683594/7848367277479092149/comments/default/3189779318137012863'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1328514867467683594/7848367277479092149/comments/default/3189779318137012863'/><link rel='alternate' type='text/html' href='http://www.schnieds.com/2009/03/creating-sql-exclusion-table-using-left.html?showComment=1263402967488#c3189779318137012863' title=''/><author><name>Michael Bourgon</name><uri>http://www.blogger.com/profile/09926914854024288990</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.schnieds.com/2009/03/creating-sql-exclusion-table-using-left.html' ref='tag:blogger.com,1999:blog-1328514867467683594.post-7848367277479092149' source='http://www.blogger.com/feeds/1328514867467683594/posts/default/7848367277479092149' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1460689637'/></entry></feed>
