Table index detection