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

Answer Posted / anbarasu

UNIQUE KEY: A Table may contain one or more UNIQUE
constraints. It’s allowing only one null value. Use this
key we maintain unique vales in the table.

FOREIGN KEY: A key used in one table to represent the value
of a primary key in a related table. While primary keys
must contain unique values, foreign keys may have
duplicates. For instance, if we use student ID as the
primary key in a Students table (each student has a unique
ID), we could use student ID as a foreign key in a Courses
table: as each student may do more than one course, the
student ID field in the Courses table (often shortened to
Courses. student ID) Will hold duplicate values.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is ase database?

732


What is the Difference Primary key and Unique Key

745


Explain various types of locks in a transaction? Which is better and why?

772


Why do we need distributed database?

713


define primary key index, bitmap index, hash index,virtual indwx

3018






How heap is implemented in database?

846


where can i free download sqlserver2008..i can install sqlserver2008 without visual studio 2008 and work on it

1825


What are the advantages of normalizing a database.

773


How does non-cluster index functions?

834


aht is the difference b/w network & hierarchial & relational dbms????

1958


Explain file manager?

766


Explain natural key?

797


How to do Data integrity testing? Who does this testing (Developer or tester)?

1781


What is difference between server and database?

734


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

854