GeekInterview.com
Series: Subject: Topic:
Question: 114 of 216

What are the advantages and disadvantages of primary key and foreign key in SQL?

Asked by: Interview Candidate | Asked on: Jul 5th, 2006
Showing Answers 1 - 2 of 2 Answers
Sheena

Answered On : Jul 6th, 2006

Primary key  Advantages  1) It is a unique key on which all the other candidate keys are functionally dependentDisadvantage1) There can be more than one keys on which all the other attributes are dependent on.Foreign KeyAdvantage1)It allows refrencing another table using the primary key for the other table

  
Login to rate this answer.
shivkumarojha

Answered On : Sep 6th, 2006

View all answers by shivkumarojha

Disadvantages:On primary key index will be created so during updation of table index need to be adjusted accordingly. this process makes the updation slower.

  
Login to rate this answer.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

Related Open Questions

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.