
POSTED: Dec 17, 2007 7:38 PM (GMT)
Denny,
that is really cool and simple logic, but I have to get all of the fields (10 in number) for my final resultant table.

POSTED: Dec 17, 2007 8:41 PM (GMT)
Hi,
This will get all the columns associated with the last date for each itemN:
SELECT * FROM tableName m WHERE date = ( SELECT MAX (date) FROM tableName WHERE itemN = m.itemN ) ORDER BY itemN;
If there is a tie for the last date in any itemN, all contenders will be selected.
There may be a more elegant way to do this, using TOP.

POSTED: Feb 17, 2012 8:46 PM (GMT)
YEEEEEEAAAAAAAAAA

















