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

Answer Posted / kranthi

primary key: primary creates a clustered index on the
column and it doesn't allow null values.

unique key: unique key creates non clustered index by
default.it allows "one null value".

foreign key: A foreign key (FK) is a column or combination
of columns used to establish and enforce a link between the
data in two tables

Is This Answer Correct ?    212 Yes 76 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are different types of joins used in?

817


What are indexes in oracle?

825


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

771


What is a database example?

697


What is the advantage of varchar2 over char?

976






What is the difference between database and server?

678


What is a sequence? Explain it with one example?

817


What is the Difference Primary key and Unique Key

745


What is database bounce?

779


How do I setup a database connection?

712


What is ase database?

732


What is difference between server and database?

734


How heap is implemented in database?

843


What are the validations performed on the source data? If there are junk data available in the source data, how to eliminate it?

1753


What is the importance of database partitioning?

769