<?xml version="1.0" encoding="UTF-8"?> <rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
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:slash="http://purl.org/rss/1.0/modules/slash/"
> <channel><title>MySQL Diary &#187; join in Mysql Archives  &#8211; MySQL Diary</title> <atom:link href="http://www.mysqldiary.com/tag/join-in-mysql/feed/" rel="self" type="application/rss+xml" /><link>http://www.mysqldiary.com</link> <description>Exploring, Sharing and  Discussing MySQL practice</description> <lastBuildDate>Mon, 18 Jul 2011 20:03:03 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>Conditional Joins in MySQL</title><link>http://www.mysqldiary.com/conditional-joins-in-mysql/</link> <comments>http://www.mysqldiary.com/conditional-joins-in-mysql/#comments</comments> <pubDate>Sun, 07 Feb 2010 19:43:12 +0000</pubDate> <dc:creator>Hazan Ilan</dc:creator> <category><![CDATA[Cool MySQL Queries]]></category> <category><![CDATA[conditional join]]></category> <category><![CDATA[join in Mysql]]></category> <category><![CDATA[left join]]></category> <category><![CDATA[mysql join]]></category> <guid
isPermaLink="false">http://www.mysqldiary.com/?p=71</guid> <description><![CDATA[<div
class="addthis_toolbox addthis_default_style " addthis:url='http://www.mysqldiary.com/conditional-joins-in-mysql/' addthis:title='Conditional Joins in MySQL '  ><a
class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a
class="addthis_button_tweet"></a><a
class="addthis_counter addthis_pill_style"></a></div>One way to do a “Conditional Join” in MySQL is by using a “LEFT JOIN”.  Create a “LEFT JOIN” for each condition and combine the results into one column using an “IF” statement by the “SELECT” expression.  Here’s an example: Suppose you have three tables: questions: a table consisting of question ids, timestamps, and whether [...]<div
class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://www.mysqldiary.com/conditional-joins-in-mysql/' addthis:title='Conditional Joins in MySQL ' ><a
class="addthis_button_preferred_1"></a><a
class="addthis_button_preferred_2"></a><a
class="addthis_button_preferred_3"></a><a
class="addthis_button_preferred_4"></a><a
class="addthis_button_compact"></a></div>]]></description> <wfw:commentRss>http://www.mysqldiary.com/conditional-joins-in-mysql/feed/</wfw:commentRss> <slash:comments>9</slash:comments> </item> </channel> </rss>
