 




<?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; DB2 SQL</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/tag/sql-server/db2-sql/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers</link>
	<description></description>
	<lastBuildDate>Sat, 18 May 2013 21:33:01 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>DB2 Recursive UDF</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/db2-recursive-udf/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/db2-recursive-udf/#comments</comments>
		<pubDate>Mon, 19 Dec 2011 21:29:10 +0000</pubDate>
		<dc:creator>jen1981</dc:creator>
				<category><![CDATA[AS400 V5R2]]></category>
		<category><![CDATA[DB2 SQL]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[I am looking to create a SQL table UDF on my AS400(v5r2) that will return a listing of suboridinates for a given manager. Is it possible to use recursion? Since we are on v5r2 recursive SQL is not an option]]></description>
				<content:encoded><![CDATA[<p>I am looking to create a SQL table UDF on my AS400(v5r2) that will return a listing of suboridinates for a given manager.  Is it possible to use recursion?  Since we are on v5r2 recursive SQL is not an option</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/db2-recursive-udf/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>iSeries SQL case on AS/400</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/iseries-sql/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/iseries-sql/#comments</comments>
		<pubDate>Wed, 22 Jun 2011 10:14:48 +0000</pubDate>
		<dc:creator>Alanlev</dc:creator>
				<category><![CDATA[AS/400 SQL]]></category>
		<category><![CDATA[DB2 SQL]]></category>
		<category><![CDATA[iSeries]]></category>
		<category><![CDATA[iSeries SQL]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Is there an equivalent to case when exists on the as/400?]]></description>
				<content:encoded><![CDATA[<p>Is there an equivalent to case when exists on the as/400?</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/iseries-sql/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Data type for output file in DB2 SQL</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/data-type-for-output-file-in-db2-sql/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/data-type-for-output-file-in-db2-sql/#comments</comments>
		<pubDate>Tue, 31 May 2011 20:51:17 +0000</pubDate>
		<dc:creator>Kath9567</dc:creator>
				<category><![CDATA[DB2]]></category>
		<category><![CDATA[DB2 SQL]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Database]]></category>
		<category><![CDATA[SQL Server]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[I am using DB2 SQL on the mainframe &#8211; not sure of the version &#8211; I want to write out a file and transfer it down to the PC &#8211; how do I specifiy numeric values for dollar values so that when I bring the file into Microsoft Access the numeric fields come in as [...]]]></description>
				<content:encoded><![CDATA[<p>I am using DB2 SQL on the mainframe &#8211; not sure of the version &#8211; I want to write out a file and transfer it down to the PC &#8211; how do I specifiy numeric values for dollar values so that when I bring the file into Microsoft Access the numeric fields come in as numeric and not character?</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/data-type-for-output-file-in-db2-sql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Running Multiple SQL statements through JCL</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/running-multiple-sql-statements-through-jcl/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/running-multiple-sql-statements-through-jcl/#comments</comments>
		<pubDate>Fri, 07 Jan 2011 23:05:38 +0000</pubDate>
		<dc:creator>Vmfquest</dc:creator>
				<category><![CDATA[DB2 SQL]]></category>
		<category><![CDATA[JCL]]></category>
		<category><![CDATA[SQL error messages]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL statements]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[I need to run multiple sql statements seperatd by &#8216;;&#8217;. I want the execution to continue for all the SQL statements even if any of the SQLs throws out error. Is it possible?]]></description>
				<content:encoded><![CDATA[<p>I need to run multiple sql statements seperatd by &#8216;;&#8217;. I want the execution to continue for all the SQL statements even if any of the SQLs throws out error. Is it possible?</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/running-multiple-sql-statements-through-jcl/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>SQL Work Files</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/sql-work-files/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/sql-work-files/#comments</comments>
		<pubDate>Thu, 26 Aug 2010 12:23:06 +0000</pubDate>
		<dc:creator>Rhansard</dc:creator>
				<category><![CDATA[DB2 SQL]]></category>
		<category><![CDATA[Focus]]></category>
		<category><![CDATA[Programming Languages]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Database]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Work Files]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[In the FOCUS programming language, you can retrieve data and hold that data for further processing at some point later in the program.  What is the best technique for doing this in SQL?]]></description>
				<content:encoded><![CDATA[<p>In the FOCUS programming language, you can retrieve data and hold that data for further processing at some point later in the program.  What is the best technique for doing this in SQL?<br/><br/></p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/sql-work-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DB2 SQL Confusion</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/db2-sql-confusion/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/db2-sql-confusion/#comments</comments>
		<pubDate>Fri, 09 Jan 2009 16:46:09 +0000</pubDate>
		<dc:creator>ThorButtox</dc:creator>
				<category><![CDATA[DB2]]></category>
		<category><![CDATA[DB2 SQL]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[I am failing to understand why the following won&#8217;t work SELECT m.index, SUM(d1.amt), SUM(d2.amt) FROM master m, detail d1, detail d2 WHERE m.index = d1.index AND m.index = d2.index AND d2.qalif = 1 GROUP BY m.index I wrote another sql that does work, I just don&#8217;t understand why I get higher values on SUM(d2.amt) than [...]]]></description>
				<content:encoded><![CDATA[<p>I am failing to understand why the following won&#8217;t work</p>
<p>SELECT m.index, SUM(d1.amt), SUM(d2.amt)<br />
FROM master m,<br />
           detail d1,<br />
           detail d2<br />
WHERE m.index = d1.index<br />
    AND m.index = d2.index<br />
    AND d2.qalif = 1<br />
GROUP BY m.index</p>
<p>I wrote another sql that does work, I just don&#8217;t understand why I get higher values on SUM(d2.amt) than I am expecting.</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/db2-sql-confusion/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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/26 queries in 0.029 seconds using memcached
Object Caching 730/846 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-19 03:29:48 -->