Suppose you have a table where you store the musical preferences of people, and you'd like to give users the ability to rank their preferences. At the time of insertion, the rank field should be calculated automatically. Later, however, the user should have the ability to edit his rankings.
id, memberid, trackid, rank
EDIT: It appears the best way to do this is to find the get the max for a member's existing ranks and add one...