babrandt
Military
- Aug 4, 2004
- 1
Given that I have the generic fields Person, Number, and Date
I would like to create a SQL query that returns for each unique person, the number associated with the most recent date.
E.g.,
PERSON NUMBER DATE
1 3 1/1/2004
1 5 1/1/2003
1 7 6/1/2004
2 5 1/1/2000
1 10 1/1/2001
2 54 1/1/2002
2 32 1/1/1999
This query would return
PERSON NUMBER
1 7
2 54
Any help would be most appreciated! Thanks!
I would like to create a SQL query that returns for each unique person, the number associated with the most recent date.
E.g.,
PERSON NUMBER DATE
1 3 1/1/2004
1 5 1/1/2003
1 7 6/1/2004
2 5 1/1/2000
1 10 1/1/2001
2 54 1/1/2002
2 32 1/1/1999
This query would return
PERSON NUMBER
1 7
2 54
Any help would be most appreciated! Thanks!