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?

Answers were Sorted based on User's Feedback



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

Answer / swapna

Both primary key and unique enforce uniqueness of the
column on which they are defined. But by default primary
key creates a clustered index on the column, where are
unique creates a nonclustered index by default. Another
major difference is that, primary key doesn't allow NULLs,
but unique key allows one NULL only.

Is This Answer Correct ?    16 Yes 0 No

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

Answer / ramneet

There is one more diff b/w primary key and unique key that
there is only one primary key in a table but there are more
then one unique keys in a table.

Is This Answer Correct ?    11 Yes 2 No

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

Answer / gowthami radhakrishnana

1)primary key uses clustered index
unique key uses non-clustered index

2)primary key doesn't allow null values
but unique allows one null value

3)there is only one primary key but more than one unique
keys

Is This Answer Correct ?    5 Yes 1 No

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

Answer / ramneet

Primary can be used in foregin key but unique key does not
used.

Is This Answer Correct ?    4 Yes 2 No

Post New Answer

More SQL Server Interview Questions

How to use user defined functions in expressions?

0 Answers  


Explain the creation and execution of a user-defined function in the sql server?

0 Answers  


how can i lock the column in the table

2 Answers   Accenture,


What is logon trigger?

0 Answers  


How to create an inline table-valued function?

0 Answers  


How to modify an existing user defined function?

0 Answers  


What is bulkcopy in sql?

0 Answers  


WHAT IS UNIQUE IDENTIFIER DATA TYPE?

2 Answers   Sparsh,


What is the difference between lock, block and deadlock? : sql server database administration

0 Answers  


role of sql sever 2005 in database rather than any other database

0 Answers  


What happens to a trigger with multiple affected rows?

0 Answers  


Explain the database you used in your final year project?

0 Answers   Wipro,


Categories