Hi everybody, here's an example of what I'm trying to do with an MS Access query.
Num |Name | Occu | Date
111 |Jon Smith | Painter | 01/01/2012
111 |Jon Smith | Painter | 01/02/2012
111 |Jon Smith | Painter | 01/08/2012
111 |Jon Smith | Artist | 01/04/2012
111 |Jon Smith | Artist | 01/05/2012
111 |Jon Smith | Artist | 01/06/2012
222 |Ted Smith | Baker | 01/01/2012
222 |Ted Smith | Baker | 01/02/2012
222 |Ted Smith | Cop | 01/03/2012
222 |Ted Smith | Cop | 01/04/2012
I want to create a query in MS Access that will filter out all of the duplicate occupations and leave me with the most recent dated occupation for each. So my query would return:
111 |Jon Smith | Painter |01/08/2012
111 |Jon Smith | Artist |01/06/2012
222 |Ted Smith | Baker |01/02/2012
222 |Ted Smith | Cop |01/04/2012
Num |Name | Occu | Date
111 |Jon Smith | Painter | 01/01/2012
111 |Jon Smith | Painter | 01/02/2012
111 |Jon Smith | Painter | 01/08/2012
111 |Jon Smith | Artist | 01/04/2012
111 |Jon Smith | Artist | 01/05/2012
111 |Jon Smith | Artist | 01/06/2012
222 |Ted Smith | Baker | 01/01/2012
222 |Ted Smith | Baker | 01/02/2012
222 |Ted Smith | Cop | 01/03/2012
222 |Ted Smith | Cop | 01/04/2012
I want to create a query in MS Access that will filter out all of the duplicate occupations and leave me with the most recent dated occupation for each. So my query would return:
111 |Jon Smith | Painter |01/08/2012
111 |Jon Smith | Artist |01/06/2012
222 |Ted Smith | Baker |01/02/2012
222 |Ted Smith | Cop |01/04/2012
I'm having a heck of a time figuring it out. Anybody have any suggestions?