I require someone's help please!!!
I want to allocate always the oldest stock quantity of production batches to customer orders
E.g. Let's say I have stock 3 of pens (from 3 different production batches)
Warehouse Stock: Pen Stock1 = 20 (oldest stock), Pen Stock2 = 10, Pen Stock3 = 30...
I hope someone can help me. Please see below.
EMP Table LOC Table
ID EMPID EMP LOCID LOCATION
1 1 SALES REP1 1 LOC1
2 1 SALES REP1 2 LOC2
3 1 SALES REP1 3 LOC3
4 2 SALES REP2 4 LOC4
5 2 SALES REP2 5 LOC5
The EMP and LOC tables were joined to give Query1, whereby LOC.EMP is selected...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.