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

Explain entity set?

583


HOW PASS PARAMETERS FOLLOWING ORDER RPG-CL-RPG?

1977


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

2064


Re: Where can i get informatica certification Exam dumps and details? please forward it to emailid:

1808


Given a table Employee which has columns name and salary, write an SQL query to find the employee with the second highest salary.

588






How to shrink a database?

542


What is the importance of database partitioning?

606


What are indexes in oracle?

628


WHAT KIND OF TOOL BO IS?

1837


What is the difference between specialization and generalization?

573


What is Object Oriented model?

618


Explain the record term used in database.

664


What the various ways to tune a teradata query

2789


How do you connect to a database?

602


What is the purpose of firebase?

546