 




<?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: AS400 Query Join</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/as400-query-join-2/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/as400-query-join-2/</link>
	<description></description>
	<lastBuildDate>Fri, 24 May 2013 01:03:22 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: tomliotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/as400-query-join-2/#comment-72098</link>
		<dc:creator>tomliotta</dc:creator>
		<pubDate>Thu, 31 Dec 2009 09:03:29 +0000</pubDate>
		<guid isPermaLink="false">#comment-72098</guid>
		<description><![CDATA[&lt;pre&gt;SELECT
  &quot;T16.CADJ&quot;.AD_TOTAL_ADJUSTMENT
 FROM
  QS36F.&quot;T16.CADJ&quot; AS &quot;T16.CADJ&quot;
 WHERE
  &quot;T16.CADJ&quot;.AD_ADJUSTMENT_DATE &gt; 20091031 AND
  &quot;T16.CADJ&quot;.AD_ADJUSTMENT_DATE &lt; 20091201 AND
  &quot;T16.CADJ&quot;.AD_TOTAL_ADJUSTMENT &gt; 100 and
  &quot;T16.CADJ&quot;.AD_REASON IN (&#039;R&#039;, &#039;C&#039;)&lt;/pre&gt;That seems to be your second query. It doesn&#039;t seem to give the &lt;i&gt;the amount&lt;/i&gt; but rather simply a selected subset of amounts.

T16.CADJ has a relationship to T16.CRDC through AD_TAXBILL_NO, but nothing in what you show illustrates any relationship to T16.GNAM nor to T16.CPRP.

Unless you show us how T16.GNAM or T16.CPRP relates to T16.CADJ or T16.CRDC, we can&#039;t guess.

I would normally assume that something like taxpayer ID has to relate somehow to T16.CADJ or T16.CRDC, maybe not directly but perhaps even through something else such as a &quot;tax bill ID&quot;.

Tom]]></description>
		<content:encoded><![CDATA[<pre>SELECT
  "T16.CADJ".AD_TOTAL_ADJUSTMENT
 FROM
  QS36F."T16.CADJ" AS "T16.CADJ"
 WHERE
  "T16.CADJ".AD_ADJUSTMENT_DATE &gt; 20091031 AND
  "T16.CADJ".AD_ADJUSTMENT_DATE &lt; 20091201 AND
  "T16.CADJ".AD_TOTAL_ADJUSTMENT &gt; 100 and
  "T16.CADJ".AD_REASON IN ('R', 'C')</pre>
<p>That seems to be your second query. It doesn&#8217;t seem to give the <i>the amount</i> but rather simply a selected subset of amounts.</p>
<p>T16.CADJ has a relationship to T16.CRDC through AD_TAXBILL_NO, but nothing in what you show illustrates any relationship to T16.GNAM nor to T16.CPRP.</p>
<p>Unless you show us how T16.GNAM or T16.CPRP relates to T16.CADJ or T16.CRDC, we can&#8217;t guess.</p>
<p>I would normally assume that something like taxpayer ID has to relate somehow to T16.CADJ or T16.CRDC, maybe not directly but perhaps even through something else such as a &#8220;tax bill ID&#8221;.</p>
<p>Tom</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 6/9 queries in 0.014 seconds using memcached
Object Caching 268/271 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-24 01:24:32 -->