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



This code returns this data. It's for a pick operation, based on the class
of a style that has the m most quantity, I have to match the class to a
zone in the warehouse.

select sty, cls, sum(qty) as sumqty
from whso312f
where sty <> ' '
group by sty, cls
order by sty, cls

STY CLS sumqty
J4JK2205 3 17
J4JK2205 4 4
J4LW2700 3 21
J4LW2700 4 106
J4LW2701 4 31
J7GM0558 1 2
J7GM0558 4 6
J7GM0623 6 4
J7JE0101 4 5
J7RC2521 1 49
J7RC2521 4 11

I want to get this: If qty is in the query that's ok.

STY CLS
J4JK2205 3
J4LW2700 4
J4LW2701 4
J7GM0558 4
J7GM0623 6
J7JE0101 4
J7RC2521 1

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.