<?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 Break a MySQL Left Join</title>
	<atom:link href="http://codespatter.com/2008/02/19/how-to-break-a-mysql-left-join/feed/" rel="self" type="application/rss+xml" />
	<link>http://codespatter.com/2008/02/19/how-to-break-a-mysql-left-join/</link>
	<description></description>
	<lastBuildDate>Tue, 31 Aug 2010 09:05:10 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: MySQLuser</title>
		<link>http://codespatter.com/2008/02/19/how-to-break-a-mysql-left-join/comment-page-1/#comment-15209</link>
		<dc:creator>MySQLuser</dc:creator>
		<pubDate>Wed, 10 Feb 2010 06:24:05 +0000</pubDate>
		<guid isPermaLink="false">http://codespatter.com/2008/02/19/how-to-break-a-mysql-left-join/#comment-15209</guid>
		<description>I have found interesting post about Conditional Joins at&lt;br&gt;&lt;a href=&quot;http://www.mysqldiary.com/conditional-joins-in-mysql/&quot; rel=&quot;nofollow&quot;&gt;http://www.mysqldiary.com/conditional-joins-in-...&lt;/a&gt;&lt;br&gt;Nice example with good explain. Helped me a lot.</description>
		<content:encoded><![CDATA[<p>I have found interesting post about Conditional Joins at<br /><a href="http://www.mysqldiary.com/conditional-joins-in-mysql/" rel="nofollow"></a><a href="http://www.mysqldiary.com/conditional-joins-in-.." rel="nofollow">http://www.mysqldiary.com/conditional-joins-in-..</a>.<br />Nice example with good explain. Helped me a lot.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aaron</title>
		<link>http://codespatter.com/2008/02/19/how-to-break-a-mysql-left-join/comment-page-1/#comment-15200</link>
		<dc:creator>Aaron</dc:creator>
		<pubDate>Sat, 17 Oct 2009 02:19:03 +0000</pubDate>
		<guid isPermaLink="false">http://codespatter.com/2008/02/19/how-to-break-a-mysql-left-join/#comment-15200</guid>
		<description>Great article.  It pointed me in the right direction.  Thanks for doing this, these kind of blogs save a lot of headache!</description>
		<content:encoded><![CDATA[<p>Great article.  It pointed me in the right direction.  Thanks for doing this, these kind of blogs save a lot of headache!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Greg Allard</title>
		<link>http://codespatter.com/2008/02/19/how-to-break-a-mysql-left-join/comment-page-1/#comment-15112</link>
		<dc:creator>Greg Allard</dc:creator>
		<pubDate>Thu, 08 Jan 2009 20:43:32 +0000</pubDate>
		<guid isPermaLink="false">http://codespatter.com/2008/02/19/how-to-break-a-mysql-left-join/#comment-15112</guid>
		<description>I&#039;m glad that this has been able to help other people out</description>
		<content:encoded><![CDATA[<p>I&#39;m glad that this has been able to help other people out</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shane</title>
		<link>http://codespatter.com/2008/02/19/how-to-break-a-mysql-left-join/comment-page-1/#comment-15111</link>
		<dc:creator>Shane</dc:creator>
		<pubDate>Thu, 08 Jan 2009 20:33:51 +0000</pubDate>
		<guid isPermaLink="false">http://codespatter.com/2008/02/19/how-to-break-a-mysql-left-join/#comment-15111</guid>
		<description>You are awesome, stumbled upon you today after spending hours and hours stumbling about frustrated.</description>
		<content:encoded><![CDATA[<p>You are awesome, stumbled upon you today after spending hours and hours stumbling about frustrated.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Prashant Deepak Vedpathak</title>
		<link>http://codespatter.com/2008/02/19/how-to-break-a-mysql-left-join/comment-page-1/#comment-13330</link>
		<dc:creator>Prashant Deepak Vedpathak</dc:creator>
		<pubDate>Tue, 05 Aug 2008 08:08:23 +0000</pubDate>
		<guid isPermaLink="false">http://codespatter.com/2008/02/19/how-to-break-a-mysql-left-join/#comment-13330</guid>
		<description>Thanks Greg and Sean.&lt;br&gt;&lt;br&gt;It helped me to reduce me number of sec to execute my query by using the left join and coalesce concept.</description>
		<content:encoded><![CDATA[<p>Thanks Greg and Sean.</p>
<p>It helped me to reduce me number of sec to execute my query by using the left join and coalesce concept.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Prashant Deepak Vedpathak</title>
		<link>http://codespatter.com/2008/02/19/how-to-break-a-mysql-left-join/comment-page-1/#comment-11850</link>
		<dc:creator>Prashant Deepak Vedpathak</dc:creator>
		<pubDate>Tue, 05 Aug 2008 07:08:23 +0000</pubDate>
		<guid isPermaLink="false">http://codespatter.com/2008/02/19/how-to-break-a-mysql-left-join/#comment-11850</guid>
		<description>Thanks Greg and Sean.

It helped me to reduce me number of sec to execute my query by using the left join and coalesce concept.</description>
		<content:encoded><![CDATA[<p>Thanks Greg and Sean.</p>
<p>It helped me to reduce me number of sec to execute my query by using the left join and coalesce concept.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Greg Allard</title>
		<link>http://codespatter.com/2008/02/19/how-to-break-a-mysql-left-join/comment-page-1/#comment-13329</link>
		<dc:creator>Greg Allard</dc:creator>
		<pubDate>Thu, 08 May 2008 16:10:03 +0000</pubDate>
		<guid isPermaLink="false">http://codespatter.com/2008/02/19/how-to-break-a-mysql-left-join/#comment-13329</guid>
		<description>Ah it would be COALESCE(log_deleted, 0) = 0 for MySQL</description>
		<content:encoded><![CDATA[<p>Ah it would be COALESCE(log_deleted, 0) = 0 for MySQL</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Greg Allard</title>
		<link>http://codespatter.com/2008/02/19/how-to-break-a-mysql-left-join/comment-page-1/#comment-13328</link>
		<dc:creator>Greg Allard</dc:creator>
		<pubDate>Thu, 08 May 2008 16:05:50 +0000</pubDate>
		<guid isPermaLink="false">http://codespatter.com/2008/02/19/how-to-break-a-mysql-left-join/#comment-13328</guid>
		<description>Thanks for the responses. I&#039;ll have to test out the performance of using OR in MySQL and see if it has similar performance loss.&lt;br&gt;&lt;br&gt;It looks like that would only be an alternative for MSSQL since the ISNULL function only has &lt;a href=&quot;http://dev.mysql.com/doc/refman/5.0/en/comparison-operators.html#function_isnull&quot;&gt;one parameter for MySQL. I&#039;ll keep an eye out for something similar in MySQL.&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>Thanks for the responses. I&#39;ll have to test out the performance of using OR in MySQL and see if it has similar performance loss.</p>
<p>It looks like that would only be an alternative for MSSQL since the ISNULL function only has <a href="http://dev.mysql.com/doc/refman/5.0/en/comparison-operators.html#function_isnull">one parameter for MySQL. I&#39;ll keep an eye out for something similar in MySQL.</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sean</title>
		<link>http://codespatter.com/2008/02/19/how-to-break-a-mysql-left-join/comment-page-1/#comment-13327</link>
		<dc:creator>Sean</dc:creator>
		<pubDate>Thu, 08 May 2008 15:42:43 +0000</pubDate>
		<guid isPermaLink="false">http://codespatter.com/2008/02/19/how-to-break-a-mysql-left-join/#comment-13327</guid>
		<description>Oh, it might be better to write the query like this:&lt;br&gt;SELECT task_text, count(tasks.task_id) AS log_count,&lt;br&gt;	 sum(log_length) AS total_time&lt;br&gt;FROM tasks LEFT JOIN logs ON tasks.task_id = logs.task_id&lt;br&gt;WHERE task_deleted = 0&lt;br&gt;AND isnull(log_deleted, 0) = 0&lt;br&gt;GROUP BY logs.task_id;</description>
		<content:encoded><![CDATA[<p>Oh, it might be better to write the query like this:<br />SELECT task_text, count(tasks.task_id) AS log_count,<br />	 sum(log_length) AS total_time<br />FROM tasks LEFT JOIN logs ON tasks.task_id = logs.task_id<br />WHERE task_deleted = 0<br />AND isnull(log_deleted, 0) = 0<br />GROUP BY logs.task_id;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sean</title>
		<link>http://codespatter.com/2008/02/19/how-to-break-a-mysql-left-join/comment-page-1/#comment-13326</link>
		<dc:creator>Sean</dc:creator>
		<pubDate>Thu, 08 May 2008 15:41:32 +0000</pubDate>
		<guid isPermaLink="false">http://codespatter.com/2008/02/19/how-to-break-a-mysql-left-join/#comment-13326</guid>
		<description>My experience with this sort of join, in MSSQL is that putting an or on the join will cause the query to lose a LOT of performance.  Not sure how you could measure this in mysql.  Of course this was on large datasets.&lt;br&gt;&lt;br&gt;ORs typically are very expensive.</description>
		<content:encoded><![CDATA[<p>My experience with this sort of join, in MSSQL is that putting an or on the join will cause the query to lose a LOT of performance.  Not sure how you could measure this in mysql.  Of course this was on large datasets.</p>
<p>ORs typically are very expensive.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
