what is difference between primary key and Unique

Answer Posted / sivasankar k.c

Primary key: it is clustered index. it not allows null
values. Only one primary in each table.

Unique Key: it is non clustered index. Unique key allows
null values.its allows only one null value. More than one
unique key in table.

Is This Answer Correct ?    8 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you mean by 'normalization'?

604


You are designing a database for your human resources department in the employee table, there is a field for social security number, which cannot contain null values if no value is given, you want a value of unknown to be inserted in this field what is the best approach?

617


you have developed an application which uses many stored procedures and triggers to update various tables users ocassionally get locking problems which tool is best suited to help you diagnose the problem? : Sql server administration

527


How to locate and take substrings with charindex() and substring() functions?

508


What is difference between views and stored procedures?

507






What is a coalesce function?

661


How many full-text indexes can a table have?

549


Why we need sql server?

555


What is the difference between Triggers and Stored Procedure?

567


What is tablesample?

571


Define self join in sql server joins?

517


Your sql server is running out of disk space. You notice that there are several large files with ldf extensions what are these files?

611


What does truncate do?

531


How to connect of datebase with sql express.?

618


how you can get the list of largest tables in a database? : Sql server administration

548