<?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; Solution Part 2 &#8211; A Quick Puzzle on JOIN and NULL &#8211; SQL Brain Teaser</title>
	<atom:link href="http://blog.sqlauthority.com/2012/02/17/sql-server-solution-part-2-a-quick-puzzle-on-join-and-null-sql-brain-teaser/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2012/02/17/sql-server-solution-part-2-a-quick-puzzle-on-join-and-null-sql-brain-teaser/</link>
	<description>Personal Notes of Pinal Dave</description>
	<lastBuildDate>Fri, 17 May 2013 15:26:57 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: SQL SERVER &#8211; Weekly Series &#8211; Memory Lane &#8211; #017 &#124; SQL Server Journey with SQL Authority</title>
		<link>http://blog.sqlauthority.com/2012/02/17/sql-server-solution-part-2-a-quick-puzzle-on-join-and-null-sql-brain-teaser/#comment-426036</link>
		<dc:creator><![CDATA[SQL SERVER &#8211; Weekly Series &#8211; Memory Lane &#8211; #017 &#124; SQL Server Journey with SQL Authority]]></dc:creator>
		<pubDate>Sat, 23 Feb 2013 01:31:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=17370#comment-426036</guid>
		<description><![CDATA[[...] Solution Part 2 – A Quick Puzzle on JOIN and NULL – SQL Brain Teaser Some questions are timeless and they never grow old; no matter how much they grow old their interest never dies. Earlier, I asked a simple puzzle based on a conversation on SQLAuthority Page, and have received an overwhelming response from readers. I still get emails related to this puzzle every day. [...]]]></description>
		<content:encoded><![CDATA[<p>[...] Solution Part 2 – A Quick Puzzle on JOIN and NULL – SQL Brain Teaser Some questions are timeless and they never grow old; no matter how much they grow old their interest never dies. Earlier, I asked a simple puzzle based on a conversation on SQLAuthority Page, and have received an overwhelming response from readers. I still get emails related to this puzzle every day. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ChiragSatasiya</title>
		<link>http://blog.sqlauthority.com/2012/02/17/sql-server-solution-part-2-a-quick-puzzle-on-join-and-null-sql-brain-teaser/#comment-254699</link>
		<dc:creator><![CDATA[ChiragSatasiya]]></dc:creator>
		<pubDate>Tue, 21 Feb 2012 04:32:12 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=17370#comment-254699</guid>
		<description><![CDATA[Hi Pinal Sir,
Thank you for selecting this as one of the answer for puzzle. 

Thank$ 
Chirag Satasiya]]></description>
		<content:encoded><![CDATA[<p>Hi Pinal Sir,<br />
Thank you for selecting this as one of the answer for puzzle. </p>
<p>Thank$<br />
Chirag Satasiya</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sarita</title>
		<link>http://blog.sqlauthority.com/2012/02/17/sql-server-solution-part-2-a-quick-puzzle-on-join-and-null-sql-brain-teaser/#comment-253583</link>
		<dc:creator><![CDATA[sarita]]></dc:creator>
		<pubDate>Fri, 17 Feb 2012 18:31:07 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=17370#comment-253583</guid>
		<description><![CDATA[How we can call a store procedure in crystal report]]></description>
		<content:encoded><![CDATA[<p>How we can call a store procedure in crystal report</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Khurram Amin</title>
		<link>http://blog.sqlauthority.com/2012/02/17/sql-server-solution-part-2-a-quick-puzzle-on-join-and-null-sql-brain-teaser/#comment-253576</link>
		<dc:creator><![CDATA[Khurram Amin]]></dc:creator>
		<pubDate>Fri, 17 Feb 2012 18:05:10 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=17370#comment-253576</guid>
		<description><![CDATA[Hi Pinal 
I initially wrong this but later today I run both queries and there is difference in execution plan as well, can you please explain two quries. Thanks,

SELECT st.col1
FROM FirstTable ft 
Full OUTER  JOIN SecondTable st ON st.Col1 = ft.Col1

Khurram]]></description>
		<content:encoded><![CDATA[<p>Hi Pinal<br />
I initially wrong this but later today I run both queries and there is difference in execution plan as well, can you please explain two quries. Thanks,</p>
<p>SELECT st.col1<br />
FROM FirstTable ft<br />
Full OUTER  JOIN SecondTable st ON st.Col1 = ft.Col1</p>
<p>Khurram</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ganesh narim</title>
		<link>http://blog.sqlauthority.com/2012/02/17/sql-server-solution-part-2-a-quick-puzzle-on-join-and-null-sql-brain-teaser/#comment-253554</link>
		<dc:creator><![CDATA[Ganesh narim]]></dc:creator>
		<pubDate>Fri, 17 Feb 2012 16:26:23 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=17370#comment-253554</guid>
		<description><![CDATA[Hi pinal,

How are you doing..?

I feel happy to say that this &quot;JOINS and NULL&quot; issue came up with earlier blog comments you know that is your first reply to me i have commented on some posts before but i did not get any reply for that, i was happy when i found response for this post

http://blog.sqlauthority.com/2012/02/09/sql-server-inner-join-returning-more-records-than-exists-in-table/#comments

That time i was bit confusing when i was seaing the answer for query 1. suddenly i  thought why jeff facing the duplicate problem with Joins even that join query1 not showing all including NULL&#039;s,

i was serously thinking for some time i did some work later i realised with &quot;NULL is NULL&quot; and &#039;not NULL=NULL&#039;..

However in this post you are right i have thought it earlier in &quot;SQL SERVER – Solution – A Quick Puzzle on JOIN and NULL – SQL Brain Teaser&quot; but you mentioned clearly that not changing the T-SQL qury, if you ok with chaning the Query we have another solution for getting NULL valuse from both the tables.
(without using joins).

SELECT * FROM dbo.FirstTable
WHERE dbo.FirstTable.Col1 IS NULL

UNION ALL

SELECT * FROM dbo.SecondTable
WHERE dbo.SecondTable.Col1 IS NULL]]></description>
		<content:encoded><![CDATA[<p>Hi pinal,</p>
<p>How are you doing..?</p>
<p>I feel happy to say that this &#8220;JOINS and NULL&#8221; issue came up with earlier blog comments you know that is your first reply to me i have commented on some posts before but i did not get any reply for that, i was happy when i found response for this post</p>
<p><a href="http://blog.sqlauthority.com/2012/02/09/sql-server-inner-join-returning-more-records-than-exists-in-table/#comments" rel="nofollow">http://blog.sqlauthority.com/2012/02/09/sql-server-inner-join-returning-more-records-than-exists-in-table/#comments</a></p>
<p>That time i was bit confusing when i was seaing the answer for query 1. suddenly i  thought why jeff facing the duplicate problem with Joins even that join query1 not showing all including NULL&#8217;s,</p>
<p>i was serously thinking for some time i did some work later i realised with &#8220;NULL is NULL&#8221; and &#8216;not NULL=NULL&#8217;..</p>
<p>However in this post you are right i have thought it earlier in &#8220;SQL SERVER – Solution – A Quick Puzzle on JOIN and NULL – SQL Brain Teaser&#8221; but you mentioned clearly that not changing the T-SQL qury, if you ok with chaning the Query we have another solution for getting NULL valuse from both the tables.<br />
(without using joins).</p>
<p>SELECT * FROM dbo.FirstTable<br />
WHERE dbo.FirstTable.Col1 IS NULL</p>
<p>UNION ALL</p>
<p>SELECT * FROM dbo.SecondTable<br />
WHERE dbo.SecondTable.Col1 IS NULL</p>
]]></content:encoded>
	</item>
</channel>
</rss>
