<?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/"
	>
<channel>
	<title>Comments on: How to do an OUTER JOIN in Query of Queries</title>
	<atom:link href="http://www.bealearts.co.uk/blog/2007/06/20/how-to-do-an-outer-join-in-query-of-queries/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bealearts.co.uk/blog/2007/06/20/how-to-do-an-outer-join-in-query-of-queries/</link>
	<description>BealeARTS - Information Ingenuity</description>
	<pubDate>Tue, 06 Jan 2009 12:58:15 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: David</title>
		<link>http://www.bealearts.co.uk/blog/2007/06/20/how-to-do-an-outer-join-in-query-of-queries/comment-page-1/#comment-2211</link>
		<dc:creator>David</dc:creator>
		<pubDate>Sat, 02 Aug 2008 14:58:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.bealearts.co.uk/blog/2007/06/20/how-to-do-an-outer-join-in-query-of-queries/#comment-2211</guid>
		<description>@Richard

Yes that's a typo, it should be SELECT QueryA.*, joinQuery.*  I've updated the post.

The CROSS JOIN in the second query is used to include the empty columns from the joinQuery to the filtered results from QueryA. This is done to give the results set of a LEFT OUTER JOIN.

I should also state that this technique assumes that the joining columns (.ID) can never have a value of -1. e.g. They are auto-numbers of a primary key.</description>
		<content:encoded><![CDATA[<p>@Richard</p>
<p>Yes that&#8217;s a typo, it should be SELECT QueryA.*, joinQuery.*  I&#8217;ve updated the post.</p>
<p>The CROSS JOIN in the second query is used to include the empty columns from the joinQuery to the filtered results from QueryA. This is done to give the results set of a LEFT OUTER JOIN.</p>
<p>I should also state that this technique assumes that the joining columns (.ID) can never have a value of -1. e.g. They are auto-numbers of a primary key.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: richard white</title>
		<link>http://www.bealearts.co.uk/blog/2007/06/20/how-to-do-an-outer-join-in-query-of-queries/comment-page-1/#comment-2207</link>
		<dc:creator>richard white</dc:creator>
		<pubDate>Sun, 29 Jun 2008 22:32:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.bealearts.co.uk/blog/2007/06/20/how-to-do-an-outer-join-in-query-of-queries/#comment-2207</guid>
		<description>hi,

the code above is not the finished product right? i am trying to replicate it but on the line:

SELECT QueryA.*, joinQuery

joinquery is not a collumn therefore it is producing an error.

Also, you don't specify a join condition in the second query of your UNION statement, which means that it'll return a Cartesian product

thanks</description>
		<content:encoded><![CDATA[<p>hi,</p>
<p>the code above is not the finished product right? i am trying to replicate it but on the line:</p>
<p>SELECT QueryA.*, joinQuery</p>
<p>joinquery is not a collumn therefore it is producing an error.</p>
<p>Also, you don&#8217;t specify a join condition in the second query of your UNION statement, which means that it&#8217;ll return a Cartesian product</p>
<p>thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://www.bealearts.co.uk/blog/2007/06/20/how-to-do-an-outer-join-in-query-of-queries/comment-page-1/#comment-6</link>
		<dc:creator>David</dc:creator>
		<pubDate>Thu, 19 Jul 2007 20:56:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.bealearts.co.uk/blog/2007/06/20/how-to-do-an-outer-join-in-query-of-queries/#comment-6</guid>
		<description>&lt;p&gt;@ Pat&lt;/p&gt;
&lt;p&gt;Thanks for spotting that.&lt;/p&gt;
&lt;p&gt;I have updated the post to correct the issue. It makes it a bit more complicated, but at least it works :-)&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>@ Pat</p>
<p>Thanks for spotting that.</p>
<p>I have updated the post to correct the issue. It makes it a bit more complicated, but at least it works <img src='http://www.bealearts.co.uk/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pat</title>
		<link>http://www.bealearts.co.uk/blog/2007/06/20/how-to-do-an-outer-join-in-query-of-queries/comment-page-1/#comment-5</link>
		<dc:creator>Pat</dc:creator>
		<pubDate>Tue, 17 Jul 2007 22:52:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.bealearts.co.uk/blog/2007/06/20/how-to-do-an-outer-join-in-query-of-queries/#comment-5</guid>
		<description>Doesn't like 
SELECT *,NULL,NULL

Query Of Queries syntax error.
Encountered "NULL. Incorrect Select List, Incorrect select column

BUT since I need a specific result and know what column types are needed, your code showed the way. THANKS</description>
		<content:encoded><![CDATA[<p>Doesn&#8217;t like<br />
SELECT *,NULL,NULL</p>
<p>Query Of Queries syntax error.<br />
Encountered &#8220;NULL. Incorrect Select List, Incorrect select column</p>
<p>BUT since I need a specific result and know what column types are needed, your code showed the way. THANKS</p>
]]></content:encoded>
	</item>
</channel>
</rss>
