Why Primary Keys and Foreign Key Relationships important in Database?

Why we create Primary Keys and Foreign Key Relationships. Do they affect any performance in SQL SERVER?


Views: 3511 | Community Opinion: 1

Tags..  DataBase Normalization  SQL SERVER

Bookmark this page..



Ask a New Question Go to Home

Community Opinion/Answers
 

Primary keys and foreign key relationships that are correctly defined help ensure that you can write optimal queries. One common result of incorrect relationships is having to add DISTINCT clauses to eliminate redundant data from result sets.

When primary and foreign keys are defined as constraints in the database schema, the server can use that information to create optimal execution plans.






What do you think? Add your opinion/answer
*Name
*your opinion/answer: