added a mechanism to get column indexes used in inner join.