Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to do this using SQL?
Message
De
23/07/2001 23:32:06
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
How to do this using SQL?
Divers
Thread ID:
00534225
Message ID:
00534225
Vues:
40
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...
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform