what is difference between primary key and Unique

Answer Posted / sunil kumar mishra

Primary key is a particular coloum that is unique in every
tuple is called primary key and ofenly it does not support
null values since it is used to uniquely identitfy row in a
table(Relation) and automatically does go to replace into
clustered index and support distinct value and Each table
should have a primary key, and each table can have only one
primary key.(Primary keys must contain unique values)

Unique value-
Unique values is same, in some manner, primary key since
You can have many UNIQUE constraints per table but primaty
key kan have one in each table.it support nonClustered
index.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can I create a report based on a query? : sql server management studio

758


Define msdb database?

785


What is a derived table?

699


How to find out the list schema name and table name for the database?

707


What is a Join and explain its types?

799






What is the difference between ‘having’ clause and a ‘where’ clause?

768


What are the differences between INNER JOIN, LEFT JOIN and RIGHT JOIN in SQL Server?

795


What are the properties of the transaction?

737


Explain collation?

788


How do you delete duplicate rows in sql server?

658


how to create “alternate row colour”?

128


What is the difference between a stored procedure and a user defined function?

743


Would you store your query in a ssrs report or a database server? State the reason why?

132


What is normalization process?

798


What are the approximate numeric data types?

706