How to Find the Date of Last Change in Inventory
- From: "doyle60@xxxxxxx" <doyle60@xxxxxxx>
- Date: 10 Jun 2005 09:09:36 -0700
If I have a table that lists a Style,Color, InventoryUnits, and
DateOfLastInventory, how can I find the last change in inventory? That
is, I wish to find Inventory that isn't moving.
For example, let's say I have the following in a table:
Style Color Units Date
1912 White 200 01/25/05
1912 White 50 02/28/05
1912 White 38 03/15/05
1912 White 200 05/01/05
1912 White 200 06/01/05
1912 White 200 06/15/05
I wish to get:
Style Color Units Days
1912 White 200 45
Or 45 days between 5/1/ and 6/15 (though it could obviously be more
days, that is the number I want).
And if I have this:
2012B Pink 415 01/25/05
2012B Pink 248 02/28/05
2012B Pink 111 03/15/05
2012B Pink 111 05/01/05
2012B Pink 111 06/01/05
2012B Pink 111 06/15/05
I wish to get:
Style Color Units Days
2012B Pink 111 90
And if I have just two dates *with* a change in inventory, or if I have
only one record for a style/color, it should return 0 days.
Thanks,
Matt
.
- Follow-Ups:
- RE: How to Find the Date of Last Change in Inventory
- From: Klatuu
- RE: How to Find the Date of Last Change in Inventory
- Prev by Date: Re: Data Access Page on Pocket PC
- Next by Date: Re: Looping through records will not pick up the correct numbers
- Previous by thread: Multiple Records (CREATION)
- Next by thread: RE: How to Find the Date of Last Change in Inventory
- Index(es):
Relevant Pages
|
Loading