× 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.



Something like this?
with t as(SELECT LPROD, LWHS, max(LOPB-LISSU+LADJU+LRCT) as OnHand
FROM ili
group by lprod, lwhs)
select t.lprod, t.lwhs, lloc, t.OnHand
from t join ili on t.lprod=ili.lprod and t.lwhs=ili.lwhs and
t.OnHand=LOPB-LISSU+LADJU+LRCT
order by lprod, lwhs

Item Whs Location ONHAND
Number
.000
.06POLY48X96 CY CY 14.069
.06POLY48X96 WY WY 5.250-
.187 IN 39 39 8.000
*JA-1538-00 WY WY .000
...
#231GUDEBR E4 RA1521 .000
#231GUDEBR E4 RG1822 .000
#231GUDEBR E4 RH1822 .000
#231GUDEBR E4 RI1021 .000
...


Rob Berendt

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

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.