<?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: Advanced MySQL Join Tips &amp; Tricks</title>
	<atom:link href="http://opensourceanalytics.com/2006/07/29/advanced-mysql-join-tips-tricks/feed/" rel="self" type="application/rss+xml" />
	<link>http://opensourceanalytics.com/2006/07/29/advanced-mysql-join-tips-tricks/</link>
	<description>Comprehensive Analytics on Open Source Software.</description>
	<lastBuildDate>Mon, 19 Jul 2010 14:57:08 -0400</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.3</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Anant</title>
		<link>http://opensourceanalytics.com/2006/07/29/advanced-mysql-join-tips-tricks/comment-page-1/#comment-11769</link>
		<dc:creator>Anant</dc:creator>
		<pubDate>Fri, 11 Apr 2008 20:06:45 +0000</pubDate>
		<guid isPermaLink="false">http://opensourceanalytics.com/?p=53#comment-11769</guid>
		<description>Hi,
Interesting read. Just wanted to add more to Nishith&#039;s example. 

CustomerId, Location
====================
Microsoft, US
Microsoft, India
Microsoft, Japan
Sun, Japan
Sun, India
Sun, US

Purchase
========
Microsoft, US
Sun, India

Now if I want to target all those Customers in Japan who have not yet made a purchase, I would use the condition table2.country=&#039;Japan&#039;. Otherwise I would get both India and Japan for a customer Microsoft, and US and Japan for Sun. 

regards
Anant</description>
		<content:encoded><![CDATA[<p>Hi,<br />
Interesting read. Just wanted to add more to Nishith&#8217;s example. </p>
<p>CustomerId, Location<br />
====================<br />
Microsoft, US<br />
Microsoft, India<br />
Microsoft, Japan<br />
Sun, Japan<br />
Sun, India<br />
Sun, US</p>
<p>Purchase<br />
========<br />
Microsoft, US<br />
Sun, India</p>
<p>Now if I want to target all those Customers in Japan who have not yet made a purchase, I would use the condition table2.country=&#8217;Japan&#8217;. Otherwise I would get both India and Japan for a customer Microsoft, and US and Japan for Sun. </p>
<p>regards<br />
Anant</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nishith</title>
		<link>http://opensourceanalytics.com/2006/07/29/advanced-mysql-join-tips-tricks/comment-page-1/#comment-10885</link>
		<dc:creator>Nishith</dc:creator>
		<pubDate>Thu, 13 Mar 2008 05:39:54 +0000</pubDate>
		<guid isPermaLink="false">http://opensourceanalytics.com/?p=53#comment-10885</guid>
		<description>Hi Brian,

Sometimes such results are needed. Lets say you have a customer table and a purchases table, and you want to target all the customers &#039;that have not made a purchase yet&#039; for a special campaign.

This can typically be solved as:

select distinct cust_id from customers
minus
select distinct cust_id from purchases

However, this approach cannot be used for very large tables (say for telecom data) and in those cases the technique outlined in the post can be used.

Guess I should have explained this in the post itself - as the technique and its usage  is non-obvious.

Glad you asked!  :-)</description>
		<content:encoded><![CDATA[<p>Hi Brian,</p>
<p>Sometimes such results are needed. Lets say you have a customer table and a purchases table, and you want to target all the customers &#8216;that have not made a purchase yet&#8217; for a special campaign.</p>
<p>This can typically be solved as:</p>
<p>select distinct cust_id from customers<br />
minus<br />
select distinct cust_id from purchases</p>
<p>However, this approach cannot be used for very large tables (say for telecom data) and in those cases the technique outlined in the post can be used.</p>
<p>Guess I should have explained this in the post itself &#8211; as the technique and its usage  is non-obvious.</p>
<p>Glad you asked!  <img src='http://opensourceanalytics.com/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian Lange</title>
		<link>http://opensourceanalytics.com/2006/07/29/advanced-mysql-join-tips-tricks/comment-page-1/#comment-10754</link>
		<dc:creator>Brian Lange</dc:creator>
		<pubDate>Sun, 09 Mar 2008 04:38:49 +0000</pubDate>
		<guid isPermaLink="false">http://opensourceanalytics.com/?p=53#comment-10754</guid>
		<description>I&#039;m confused why the subset of table2 is useful. If there is no match what does qualifying the join condition provide you? 
Could you provide an example.

Thanks,

Brian</description>
		<content:encoded><![CDATA[<p>I&#8217;m confused why the subset of table2 is useful. If there is no match what does qualifying the join condition provide you?<br />
Could you provide an example.</p>
<p>Thanks,</p>
<p>Brian</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Data Mining Forum - Featuring Data Mining, Business Intelligence, and Information Technology</title>
		<link>http://opensourceanalytics.com/2006/07/29/advanced-mysql-join-tips-tricks/comment-page-1/#comment-886</link>
		<dc:creator>Data Mining Forum - Featuring Data Mining, Business Intelligence, and Information Technology</dc:creator>
		<pubDate>Sat, 26 Aug 2006 16:57:11 +0000</pubDate>
		<guid isPermaLink="false">http://opensourceanalytics.com/?p=53#comment-886</guid>
		<description>[...] Original post by Nishith and software by Elliott Back [...]</description>
		<content:encoded><![CDATA[<p>[...] Original post by Nishith and software by Elliott Back [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DataMiningForum.com &#187; Blog Archive &#187; Advanced MySQL Join Tips &#38; Tricks</title>
		<link>http://opensourceanalytics.com/2006/07/29/advanced-mysql-join-tips-tricks/comment-page-1/#comment-880</link>
		<dc:creator>DataMiningForum.com &#187; Blog Archive &#187; Advanced MySQL Join Tips &#38; Tricks</dc:creator>
		<pubDate>Sat, 26 Aug 2006 04:18:05 +0000</pubDate>
		<guid isPermaLink="false">http://opensourceanalytics.com/?p=53#comment-880</guid>
		<description>[...] Original post by Nishith and software by Elliott Back [...]</description>
		<content:encoded><![CDATA[<p>[...] Original post by Nishith and software by Elliott Back [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
