For example, the table has columns MYINDEX and NAME.
MYINDEX | NAME ================= 1 | BOB 2 | BOB 3 | CHARLES
Ho do
If you wanted to see the highest index for name = 'Bob', use:
SELECT MAX(MYINDEX) AS [MaxIndex] FROM myTable WHERE Name = 'Bob'