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

Answer Posted / gowthami radhakrishnana

1)primary key uses clustered index
unique key uses non-clustered index

2)primary key doesn't allow null values
but unique allows one null value

3)there is only one primary key but more than one unique
keys

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you delete a data source?

654


What are “lock” hints?

679


How to delete database objects with "drop" statements in ms sql server?

673


What is the concept of optimization?

683


What are user defined functions in ms sql server?

589






What is policy based management (pbm)? : sql server database administration

659


What is full outer join in sql server joins?

642


Explain what is row_number function?

653


What is precedence constraint?

630


Recommend an approach to ensuring that all changes in the remote databases synchronize with the SQL Azure database?

114


Differentiate between a local and a global temporary table?

632


What is a full text index?

574


Why olap is used?

636


where the connection string store in the database

1626


What is tabulation?

625