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 Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Unique Key Constraint, Querable index?

Status
Not open for further replies.

SteveDingle

Programmer
Jul 26, 2004
254
GB
Heya All,

All my tables have surrogate PK's which means that all my tables also have alternate keys which I am currently enforcing using Unique Key Constraint as opposed to a Unique Index. My question is, does the constraint help in querying against the table? If not should I also have a index on the AK expression or should I just be using a unique index as opposed to a constraint

This is important since often the AK's are used to retrieve a record as opposed to the PK

Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top