Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Answer Posted / srinivas

Primary key is a combination of unique+not null+cluster
index and it will not allow any duplicate values, null
values, and it's data will be arranged in ascending order
due to clustered index. Only one primary key is allowed
per table.

Unique key is a key which will not accept any duplicate
values, but it will accept one null value. We can place
any number of unique keys per table.

Is This Answer Correct ?    17 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How optimize sql query with multiple joins in sql server?

905


Explain what is dbcc?

1011


What is the difference between online clustering and Offline clustering?

2419


What is SQL Azure Firewall?

136


What happens when converting big values to integers?

999


What is row_number () and partition by in sql server?

1081


Retrieve the unique rows from table without using UNIQUE and DISTINCT keywords.

1011


What is reportserver and reportservertempdb ?

152


What is the use of partition by in sql server?

933


How to create a new login name in ms sql server?

1064


Explain ranking functions?

1051


What is the use of commit?

1001


What are the different types of replication you can set up in sql server?

1052


What is NOT NULL Constraint in sql server 2012?

1001


what type of index will get created after executing the above statement? : Sql server database administration

976