I have a table with 3 columns which looks like this:
File User Rating (1-5) ------------------------------ 00001 1 3 00002 1 4 000
The best way to do this would be with window functions.