what is difference between primary key and unique key
?

Answer Posted / chandonline

Basic difference between primary key and unique is that primary key is used to define a table in other tables for preventing data from anomalies,and unique key is used in a table to apply unifications among different values or columns of a tables and only in that table obviously.Their is no usage of unique key outward a table but primary key is often used to make relations between other tables.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain about relational database management systems?

570


How long can an error message be in raiseerror function?

550


State the acid rules?

684


You have two tables with a one to many join based on a field named id. You need to find records in the parent table that are not represented in the child table. how would you accomplish this?

594


Explain about the relational database?

610






What are the key features of dbms?

567


What is dbms explain in brief?

563


Explain about the database management systems.

568


Explain the role of indexing in databases?

642


Explain the cube operator?

602


If a column is an image value type, how you can compare column values? How can you use this column in join clause?

593


fact table and dimension table containg one to many relationship or many to one relastionship

2078


What is the database development process?

690


What are the 18 schemas?

612


Write short notes on manual refreshes.

2291