 




<?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>IT Answers &#187; Conditional JOIN</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/tag/conditional-join/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers</link>
	<description></description>
	<lastBuildDate>Thu, 23 May 2013 03:54:19 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>SQL Table Join when the name of a column in Table1 equals the value of a column in Table2</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/sql-table-join-when-the-name-of-a-column-in-table1-equals-the-value-of-a-column-in-table2/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/sql-table-join-when-the-name-of-a-column-in-table1-equals-the-value-of-a-column-in-table2/#comments</comments>
		<pubDate>Thu, 04 Dec 2008 08:13:42 +0000</pubDate>
		<dc:creator>Bchat</dc:creator>
				<category><![CDATA[Conditional JOIN]]></category>
		<category><![CDATA[Conditional SQL statements]]></category>
		<category><![CDATA[Conditional statements]]></category>
		<category><![CDATA[DB2 SQL]]></category>
		<category><![CDATA[JOIN statement]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Does anyone know how to write the SQL to join two DB2 tables when the name of Table1.columnA equals the data values stored in Table2.columnB? In the table structure examples listed below, I&#8217;m trying to figure out how to join Table1 and Table2 when the values in Table2.Tag_Name are equal to the column names in [...]]]></description>
				<content:encoded><![CDATA[<p>Does anyone know how to write the SQL to join two DB2 tables when the name of Table1.columnA equals the data values stored in Table2.columnB?</p>
<p>In the table structure examples listed below, I&#8217;m trying to figure out how to join Table1 and Table2 when the values in Table2.Tag_Name are equal to the column names in Table1, i.e. Public_Housing, Private_Funding, Public_Education  </p>
<p>Table1.<br />
     Account_Id<br />
     Status_Id<br />
     Public_Housing<br />
     Private_Funding<br />
     Public_Education</p>
<p>Table2.<br />
     Group_Id<br />
     Tag_Id<br />
     Tag_Name</p>
<p>Thanks.</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/sql-table-join-when-the-name-of-a-column-in-table1-equals-the-value-of-a-column-in-table2/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 3/14 queries in 0.026 seconds using memcached
Object Caching 325/342 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-23 06:57:42 -->