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

Can you explain the disadvantages/limitation of the cursor?

503


can we have a nested transaction? : Sql server database administration

499


What is difference between cte and view?

523


Relational calculus is what type of language?

573


What do you understand by user-defined function in the sql server?

486






what is a sub-report?

96


How to use subqueries with the in operators in ms sql server?

562


you have separate development and production systems you want to move a copy of a development database into production to do this, you do a backup on the development system and restore to the production system after a few minutes, you begin getting calls from several customers saying that they are denied access to the system why? : Sql server administration

550


What are the underflow and overflow behaviors on float literals?

572


What is difference between sql and sql server?

540


How to check if a table is being used in sql server?

515


How do I start sql server agent automatically?

500


Explain what are the different index configurations a table can have?

691


What are the types of database schema? : sql server analysis services, ssas

598


What is the security model used in sql server 2005?

509