Suppose I have the following situation
table 1
col1: Table1ID INT Primary key
col2: FK_Table2ID INT
table 2
col1: Table2ID INT Primary key
col1 in tables 1 and 2 are the primary keys so they are already indexed. If I want to join table 1 to table 2 (on FK_Table2ID = Table2ID), will having FK_Table2ID indexed make any different in terms of speed? For some reason, I'm thinking that it would only make a difference if I wanted to view the information for the join ordered by FK_Table2ID but maybe this is wrong.
Thanks in advance
table 1
col1: Table1ID INT Primary key
col2: FK_Table2ID INT
table 2
col1: Table2ID INT Primary key
col1 in tables 1 and 2 are the primary keys so they are already indexed. If I want to join table 1 to table 2 (on FK_Table2ID = Table2ID), will having FK_Table2ID indexed make any different in terms of speed? For some reason, I'm thinking that it would only make a difference if I wanted to view the information for the join ordered by FK_Table2ID but maybe this is wrong.
Thanks in advance