What are primary keys and foreign keys?

Answer Posted / nevual

Primary keys are the unique identifiers for each row. They
must contain unique values and cannot be null. Due to their
importance in relational databases, Primary keys are the
most fundamental of all keys and constraints. A table can
have only one Primary key.
Foreign keys are both a method of ensuring data integrity
and a manifestation of the relationship between tables.

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the properties of the transaction?

549


Tell me what is sql profiler?

627


what authentication modes does sql server support? : Sql server database administration

522


what is nonclustered index

546


how can u get last observation in an unknown dataset ?

2003






Do you know what are the differences between lost updates and uncommitted dependencies?

546


How to restore performance issues and how to check?

1527


Write SQL queries on Self Join and Inner Join.

619


What are data driven subscriptions?

79


How do I open a .db file?

483


You have modified 100 store procedures and want to replicate these changes from development to prodution, and production can have users using the Server/DB, how would you replicate without causing issues?

1724


How to rebuild indexes with alter index ... Rebuild?

592


How do I find the port number for sql server?

504


What is store procedure?

645


What is mean by candidate key?

542