Alan, Until you added the Year field, I was going to suggest trying an Import into another table sorting by the sales amount. Then Updating the Rank field with the RRN() function. Bill > Well actually Rob I simplified the file for the excercise. I'll also have a > year field and then I can see who was number what in each year, that is the > real need for the rank field. I can and will easily do this in RPG but just > wondered if there was an SQL function. _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
As an Amazon Associate we earn from qualifying purchases.
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.