adspace


Why is a primary key important?

Answer Posted / Geeta

A Primary Key is crucial in a database for several reasons: It uniquely identifies each record within a table, ensuring data integrity by preventing duplicate records. It serves as a foreign key in other tables, maintaining referential integrity. It can significantly improve query performance due to the ability to quickly find specific records. Lastly, it is an essential part of the relational model.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we use distinct and group by together?

1133


what is bcp? When does it used? : Sql dba

1056


What is the current version of postgresql?

1178


what is schema? : Sql dba

1147


what are aggregate and scalar functions? : Sql dba

1129


how to start mysql server? : Sql dba

1267


If a cursor is open, how can we find in a pl/sql block?

1238


How do I remove duplicates in two columns?

1187


What is the current version of sql?

1094


how to use regular expression in pattern match conditions? : Sql dba

1113


Is primary key clustered index?

1019


what are all the common sql function? : Sql dba

1131


Is primary key always clustered index?

1095


what is collation? : Sql dba

1229


Can delete statement be rollbacked?

1054