What's the difference between a primary key and a unique key?

Answer Posted / amit

-Both are Unique means they do not accept duplicate value.

-Primary key by default Clustered Index where as Unique Key
is a Non-Clustered Index.

-Primary Key does not accept null value where as Unique Key
accept only one Null Value.

-A table can have only one Primary Key where as A table can
have multiple Unique Key.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is the difference in login security modes between v6.5 and 7.0? : Sql server database administration

737


What is logshipping and its purpose?

636


Why use stored procedures in sql server?

622


What are page splits?

670


Can we insert data into view sql server?

616






What are sql servers used for?

605


What is the difference between writing data to mirrored drives versus raid5 drives

578


What is a result set object returned by mssql_query()?

659


How to replace null values in expressions using isnull()?

748


let's assume you have data that resides on sql server 6.5. You have to move it sql server 7.0. How are you going to do it? : Sql server database administration

591


What does it mean to normalize data?

590


Explain security with sql azure?

165


Explain the database you used in your final year project?

621


How you can move data or databases between servers and databases in sql server?

656


Explain what is the use of custom fields in report?

590