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 is difference between primary key and Unique

Answers were Sorted based on User's Feedback



what is difference between primary key and Unique..

Answer / naresh

Primary key:it can not be null

Unique:it can have only one null value in a table.

Is This Answer Correct ?    13 Yes 2 No

what is difference between primary key and Unique..

Answer / thaqi

unique key: allows NULL values and doesn't allow duplicate
values.

primary key:doesn't allow both NULL and duplicate values

Is This Answer Correct ?    11 Yes 1 No

what is difference between primary key and Unique..

Answer / 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

what is difference between primary key and Unique..

Answer / navneet sharma

Unique key allow null value and it is a non cluster index
Primary key does not allow null value and it is custer index

Is This Answer Correct ?    4 Yes 0 No

what is difference between primary key and Unique..

Answer / hari

Primary key : Doen't allow null values
Unique key : allow one null value
Primary key create cluster index
Unique Key create non-cluster index

Is This Answer Correct ?    3 Yes 0 No

what is difference between primary key and Unique..

Answer / 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

what is difference between primary key and Unique..

Answer / 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

what is difference between primary key and Unique..

Answer / suresh kaudi

Primary key : Not Accept null values
Unique key : Accept Onley one null value
When you Make Primary key In a table cluster index create
Automatically mean default.
Unique Key create Automatically non-cluster index

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More SQL Server Interview Questions

Give me any three differences between Truncate and Delete.

0 Answers   Genpact,


here id col have primary key and identity id name 1 a 2 b 3 c 4 d delete 2nd row then o/p will be id name 1 a 3 c 4 d next inssert 2nd row and i want o/p will be id name 1 a 2 e 3 c 4 d

7 Answers   IBM, TCS,


How do we know if any query is retrieving a large amount of data or very little data?

0 Answers  


Explain about Views?

0 Answers   Infosys,


How can we get count of the number of records in a table?

0 Answers  


How To Make password Protected SQL Server 2005 Database i.e when i open SQL Server database then ask for password.

1 Answers  


What is PROJECTION Operation?

0 Answers   Infosys,


What is the difference between 2-Tier architecture and 3-Tier architecture

15 Answers   CTS, MCN Solutions, Oracle,


explain what is raid and what are different types of raid configurations? : Sql server database administration

0 Answers  


Can anyone explain difference between Database, Data warehouse and Data mart with some example?````

4 Answers  


When is the use of update_statistics command?

0 Answers  


What are the Advantages of using CTE in sql server?

0 Answers   Winsol Solutions,


Categories