G
Guest
I have the following records in MyTable (without the Rank column):
EmplID RaiseDate Rank
13 10/1/2003 1
13 12/31/2002 2
13 12/31/2001 3
51 9/15/2003 1
51 9/15/2002 2
51 1/1/2001 3
51 6/30/2000 4
What I am hoping for is some SQL text that would Rank the RaiseDate in descending order within each EmplID group. The final result should look like the table above WITH the rank column. Can anyone help?
EmplID RaiseDate Rank
13 10/1/2003 1
13 12/31/2002 2
13 12/31/2001 3
51 9/15/2003 1
51 9/15/2002 2
51 1/1/2001 3
51 6/30/2000 4
What I am hoping for is some SQL text that would Rank the RaiseDate in descending order within each EmplID group. The final result should look like the table above WITH the rank column. Can anyone help?