I know that foreign keys are not indexed by default, but if the original reference is an index, will a FK also be an index - i.e. is indexing transitive?
Example:
- Table1 has a non-clustered composite index on columns(A,B)
- Table2 has two foreign keys with references to Table1.A and Table1.B
Will running a SELECT on Table2.A_FK or Table2.B_FK offer indexed performance, i.e. ~O(log[n]) instead of non-indexed O(n)? In SQL Server Management Studio, object explorer will not list these two foreign keys as an index for Table2.