I have an activity table with the following structure/data:
ActivityType ActivityDateTime
1 4/1/05 11:00 am
2 4/2/05 5:00 pm
1 4/4/05 4:00 am
1 4/5/05 3:00 pm
2 4/6/05 11:00 am
3 4/6/05 1:00 pm
3 4/7/05 2:00 pm
What I need is the latest record for each ActivityType. ie
1 4/5/05 3:00 pm
2 4/6/05 11:00 am
3 4/7/05 2:00 pm
Any help is appreciated.
Rene'
ActivityType ActivityDateTime
1 4/1/05 11:00 am
2 4/2/05 5:00 pm
1 4/4/05 4:00 am
1 4/5/05 3:00 pm
2 4/6/05 11:00 am
3 4/6/05 1:00 pm
3 4/7/05 2:00 pm
What I need is the latest record for each ActivityType. ie
1 4/5/05 3:00 pm
2 4/6/05 11:00 am
3 4/7/05 2:00 pm
Any help is appreciated.
Rene'