Best method used to get MAX previous scores for each ID over all the Quarters.
Given:
ID QTR SCORE
21 1 3
21 2 5
21 3 3
21 4 3
41 1 2
41 2 2
41 3 4
41 4 2
Expected:
ID QTR PREV_MAX_SCORE
21 1 3
21 2 5
21 3 5
21 4 5
41 1 2
41 2 2
41 3 4
41 4 4