Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Primary Keys and Clustered Indexes
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Conception bases de données
Divers
Thread ID:
00462472
Message ID:
00463077
Vues:
17
>>For the Financial table, leave the Clustered index on the the PK.
>
>Are you sure about this? In the Financial table, the PK is FinancialID (surrogate integer), while the foreign key is CompanyID (surrogate integer). I perform calculations throughout the day on a set of Financial records for a given company. Shouldn't the clustered index be on CompanyID so that all of a company's financial records are grouped together?

Whoops. Someone was talking to me as I wrote this. I meant FK

Sorry.

-Mike
Michael Levy
MCSD, MCDBA
ma_levy@hotmail.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform