Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to do this using SQL?
Message
From
23/07/2001 23:32:06
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
How to do this using SQL?
Miscellaneous
Thread ID:
00534225
Message ID:
00534225
Views:
41
Hi,
I am wiritng module to calculate item's cost using FIFO method. Therefore, I need to get all of the latest stock in details which it's qty can "included" in current item's balance qty. For example:
Item A
Current Stock Balance : 50

Latest StockIn Details
InvNo ItemNo   Qty   Cost Date
-------------------------------
A01   ItemA    10    10   22/07/2001   - Include
A02   ItemA    10    20   21/07/2001   - Include
A03   ItemA    10    15   19/07/2001   - Include
A04   ItemA    10    10   18/07/2001   - Include
A05   ItemA    10    10   10/07/2001   - Include
A06   ItemA    10    10   08/07/2001   - Exclude since the total qty exceed 50
How to use SQL to get the "included" stock in details for all of the items ??

Thank you
I am not the most powerful man in this world.
I am not the worst man in this world either.
I just as same as all of you.
I still need to learn from my mistakes...
Next
Reply
Map
View

Click here to load this message in the networking platform