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 / mrityunjay kumar

There are difference between Primary key and unique key.

1. Primary key allow not null value where as unique key
allow only one null value.

2. Primary key Creates clustered index where as unique key
creates non clustered index.

3. Primary key is only one in a table where as unique key
is multiple in a table.

4. Primary key is not accept duplicate value where as
Unique key is also not accept any duplicate values, but it
will accept one null value.

Is This Answer Correct ?    8 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain features of analysis services?

997


What is a subquery in a select query statement in ms sql server?

1131


What happens if you insert a duplicate key for the primary key column in ms sql server?

975


Explain subquery and state its properties?

1042


Can two tables share a primary key?

1019


Define left outer join in sql server joins?

958


What is forward - only cursors / read only cursor?

1089


What are the advantages of user defined function?

984


How can a user-defined datatype be created?

985


what method you can use to reduce the overhead of Reporting Services data sources?

255


Can We Use Data-grids For Our Report In Ssrs?

184


What is clustered vs nonclustered index?

944


Which language rdl files made of?

130


What methods do you follow to protect from sql injection attack?

1025


Describe the functionalities that views support.

1099