<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://weblogs.com.pk/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>TSQL :: Comparing multiple fields</title><link>http://weblogs.com.pk/khurram/archive/2006/06/18/4248.aspx</link><description>Sometimes you want to select from one list the items that exist (or don’t exist) in the second row; and for the comparison you want to use multiple rows. This is common in scenarios where you want to remove duplicate values. You might wish to write something</description><dc:language>en</dc:language><generator>CommunityServer 2.1 SP2 (Build: 61129.2)</generator><item><title>re: TSQL :: Comparing multiple fields</title><link>http://weblogs.com.pk/khurram/archive/2006/06/18/4248.aspx#4254</link><pubDate>Sun, 18 Jun 2006 07:32:22 GMT</pubDate><guid isPermaLink="false">a12f9144-cb49-4219-92b3-49202100e145:4254</guid><dc:creator>aziz</dc:creator><description>I think this query has a typo mistake.&lt;br&gt;Original : &lt;br&gt;select userid, username&lt;br&gt;from users&lt;br&gt;where (userid, username) not in (select userid, username from users)&lt;br&gt;&lt;br&gt;What i think :&lt;br&gt;select userid, username&lt;br&gt;from users&lt;br&gt;where (userid, username) not in (select userid, username from goodUsers)</description></item><item><title>re: TSQL :: Comparing multiple fields</title><link>http://weblogs.com.pk/khurram/archive/2006/06/18/4248.aspx#4258</link><pubDate>Tue, 20 Jun 2006 12:15:41 GMT</pubDate><guid isPermaLink="false">a12f9144-cb49-4219-92b3-49202100e145:4258</guid><dc:creator>Khurram</dc:creator><description>Yes, Aziz version is the one I meant!</description></item></channel></rss>