This is a sample of a Table called ‘StockItem’
ItemNum UnitPrice SupplyDate
0001 5.00 12-Dec-2007
0001 12.00 10-Jul-2007
0002 7.00 12-Dec-2007
0003 2.00 12-Dec-2007
0004 3.00 12-Dec-2007
0004 5.00 10-Jul-2007
I need to retrieve the rows of ItemNum base on the last ‘SupplyDate’. I am having problems excluding rows with the same ‘ItemNum’, example.
ItemNum UnitPrice SupplyDate
0001 12.00 10-Jul-2007
0002 7.00 12-Dec-2007
0003 2.00 12-Dec-2007
0004 5.00 10-Jul-2007
Due to the UnitPrice difference, I need to pick only one from the ItemNum base on the SupplyDate.
Anyone can help? Version 2000.
Thanks.
ItemNum UnitPrice SupplyDate
0001 5.00 12-Dec-2007
0001 12.00 10-Jul-2007
0002 7.00 12-Dec-2007
0003 2.00 12-Dec-2007
0004 3.00 12-Dec-2007
0004 5.00 10-Jul-2007
I need to retrieve the rows of ItemNum base on the last ‘SupplyDate’. I am having problems excluding rows with the same ‘ItemNum’, example.
ItemNum UnitPrice SupplyDate
0001 12.00 10-Jul-2007
0002 7.00 12-Dec-2007
0003 2.00 12-Dec-2007
0004 5.00 10-Jul-2007
Due to the UnitPrice difference, I need to pick only one from the ItemNum base on the SupplyDate.
Anyone can help? Version 2000.
Thanks.