in reply to Ranking position in a SQL index
SELECT COUNT($col) FROM $table WHERE $col <= $this_row_col_value [download]
Or perhaps I misunderstand what you mean by "rank", if so, please explain.