what is primary key,unique key, foreign key? can u teach me
in simple language?

Answer Posted / doraswamy

One table allows only one primary key but there is no
restriction for unique keys.
These two are same but one difference is unique key will
allow nulls.
Primary key create on a combination of mulitiple colums.

Foreign key is reference of another table primiary key. It
will not allow null values.

~Doraswamy

Is This Answer Correct ?    106 Yes 43 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the types of joins?

795


Differentiate between unique key and foreign key?

747


What is the candidate key used for?

794


What is ole db in ssis?

788


Under which circumstance should you create an index on a table?

854






What is a trace file?

809


sparse lookup and where its options we find in OCI and db2?

1946


what is rcp,if rcp disabled what happen?

1882


give a simple example of physical and logical data independence

2283


Please post the scenerois for writing the complex sql queries , for my practice.Can be any query if you cannot solve.

2268


WHAT IS THE PURPOSE OF TESTING INTEGRITY OF THE UNIVERSE?

1985


Which is the most reliable programming language for RDBMS Relational Database Management System for Multi user applicaton. For PC application or web application ?

2219


What is the importance of database partitioning?

769


How concurrency problems effect the database?

807


What is difference between server and database?

734