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 the difference between unique and primary key

Answers were Sorted based on User's Feedback



what is the difference between unique and primary key..

Answer / ravi kanth

Primary key is the combination of unique and not null.But
unique key accepts null values also.

Is This Answer Correct ?    6 Yes 1 No

what is the difference between unique and primary key..

Answer / suresh kumar somayajula

Unique Key allows NULL value and a table can have more than
one UNIQUE KEY Constraint.

Primary Key is the combination of UNIQUE+NOT NULL,means it
won't allow NULL Values and a table can have only one
Primary Key.But a table can have Composite Primary Key.

Thank you,
Suresh

Is This Answer Correct ?    4 Yes 0 No

what is the difference between unique and primary key..

Answer / priyanka

Both are uniqe identification keys but Primary key should
not be null but uniqe key should.

Is This Answer Correct ?    1 Yes 1 No

what is the difference between unique and primary key..

Answer / divyarao

primary key accepts only values which has no duplication ,and does not accept null values . for a a table there should be only one primary key constraint.
whereas in unique key ,it accepts null values .here also there should not be any duplication ,a table may have more than one unique key constarint

Is This Answer Correct ?    0 Yes 0 No

what is the difference between unique and primary key..

Answer / vinod

uniqe key allow one null value only but primary key cannot
allow any null value

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More Database Management Interview Questions

What is the normal procedure followed by a java client to access the db?

0 Answers  


What is db driver?

0 Answers  


What is distributed queries?

0 Answers  


What is the use of drop command?

0 Answers  


Should database table names be capitalized?

0 Answers  


Define database lock?

0 Answers  


What are the features of a database management system?

0 Answers  


8. Sort, Lookup What kind of technique (partition) is used? 9. How can you handle exceptions in job sequencer? 10. How do you apply custom conditions an exceptions (How do you trigger exceptions in job sequence?) 11. I have a job with 3 possibilities? Finish with ok…..Abort…….Warning} How do you handle these in Job sequencer 12. How do you connect both OK and Warning can we? 13. How to find which process is running currently? 14. How do you find the disk usage in UNIX? 15. How do you combine 2 sequential files having same metadata of same file names? 16. How do you implement SCD in Ds? 17. Explain the situation where you have applied? 18. How do you apply new changes to? 19. Difference between change capture and Change apply? 20. Explain Compare Stage? 21. What is Surrogate key? 22. How to solve the problem of null values?

0 Answers   IBM,


How to handle data if f table are more than one and each table contain thousands of entries?

0 Answers   QuickLogic,


What are the two types of indexes and explain them in detail? Or what's the difference between clustered and non-clustered indexes?

0 Answers  


With DTS packaging I can store tables in Excel and convert them back to SQL. But once I copied tables to Excel I want to modify some info. How you do that without editing the Excel file?

0 Answers   eBay,


What does partition mean in database?

0 Answers  


Categories