× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hi Bill

Finally I deleted the problem_maker left_join from SQL statement and add RPG code for searching detailed information ... maybe this is the simplest solution ...

regards

Tomek

W dniu 2010-03-13 00:46, midrange-l-request@xxxxxxxxxxxx pisze:
message: 1
date: Fri, 12 Mar 2010 14:24:15 -0800
from: Bill<brobins3d@xxxxxxxxx>
subject: Re: Why I get diffrent result for SQL

Tomasz Skor?a wrote:
> SELECT ILITM, ILLITM, ILMCU,
> ILLOTN, ILLOCN, ILDOC, ILDCT, ILDGL,
> D4DATE, D4DAY, D4WEK, D4MTH, D4YER, ILGLPT, ILDOCO,
> ILDCTO, ILTRDJ, D5DATE, D5WEK, D5DAY, D5MTH, D5YER,
> ILTRUM, ILAN8,
> ILTRQT/getumconv(ILITM, ILTRUM, IMUOM1),
> ILPAID/100, IS$FM#
> FROM F4111 LEFT JOIN F57217C
> ON ILDOCO = ISBCT and ILDCTO = 'II'
> LEFT JOIN F55008 on ILDGL=D4DGJ
> LEFT JOIN F55009 on ILTRDJ=D5DGJ
> LEFT JOIN F4101 on ILITM=IMITM
> WHERE
> ILTRQT<>0 AND ILITM<>0 AND ILTRDJ<>0
Tomasz,

This looks like you modified an existing Left Outer Join query, that's
the only time I put selection criteria in the Join clause. Try moving
the "and ILDCTO='II'" down to the Where clause where it really belongs
anyway. How do the 2 now react?

Bill


------------------------------

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.