Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Indexing Question

Status
Not open for further replies.

bbitzer

Programmer
Feb 4, 2003
8
0
0
US
If a table has a concatenated primary key (Col_A, Col_B) and is a clustered index where each column is a foreign key from another parent table, would it be necessary to create nonclustered indexes on each individual key (one on Col_A and another on Col_B)? Or, would SQL Server use the clustered index of this table when joined to the child table efficiently?
 
what is the actual join to the child table? Is it one of the two concatinated fields? If it is the first one they you probably do not need to add another index if it is the second one you probably do.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top