what is difference between primary key and Unique

Answer Posted / suresh kaudi

Primary Key: Not allow null values,when we make primary key
automatically create cluster index,primary key we make
other foreign key.

Unique key: allow one null value,we can't make it foreign
key to other table.here we cane make only non-cluster index

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 history table in sql server?

660


What is a functions and types in sql server?

748


How to create new databases with "create database" statements?

758


what is dbcc? : Sql server database administration

684


What is TDS(Tabular Data Stream) Gateway?

115






What are SSL and TSL protocols?

747


What specific conditions database should meet, before you can bulk copy data into it using bcp?

739


What is a livelock?

721


If you lose rights to your sql server instance what are the options to connect to sql server instance? : sql server security

717


Explain syntax for viewing trigger?

708


How does Report Builder support Analysis Services cubes?

136


How do clustered indexes store data?

804


Explain what are magic tables in sql server?

699


Explain how dts is used to extract, transform and consolidate data?

764


What is standby servers? Explain types of standby servers.

675