I need 1 record for each part. This record must have max(date) and max(identity#) and type must = "a" or "u".
Example:
ident# Part quantity type date
1 1234 460 a 3/12/2007 13:35
2 1234 10 u 3/13/2007 13:35
3 1234 50 1 3/14/2007 13:35
4 5421 46 a 3/14/2007 13:35
5 1234 460 9 3/14/2007 13:35
6 1234 460 1 3/14/2007 13:35
7 5421 0 u 3/15/2007 13:35
8 1234 50 u 3/14/2007 13:35
9 1234 12 1 3/14/2007 13:35
Results should be
7 5421 0 u 3/15/2007 13:35
8 1234 50 u 3/14/2007 13:35
Example:
ident# Part quantity type date
1 1234 460 a 3/12/2007 13:35
2 1234 10 u 3/13/2007 13:35
3 1234 50 1 3/14/2007 13:35
4 5421 46 a 3/14/2007 13:35
5 1234 460 9 3/14/2007 13:35
6 1234 460 1 3/14/2007 13:35
7 5421 0 u 3/15/2007 13:35
8 1234 50 u 3/14/2007 13:35
9 1234 12 1 3/14/2007 13:35
Results should be
7 5421 0 u 3/15/2007 13:35
8 1234 50 u 3/14/2007 13:35