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

Answer Posted / ck

Primary key is a key which will not allow any null values.
whereas unique key which will allows null value only once.

Foreign key is a key which values should match some values
in the primary key value.

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is database and its types?

743


You are creating a Index on EMPNO column in the EMPLOYEE table. Which statement will you use?

975


What is database schema name?

772


how can we view column head in first page but not in remaining pages?

1821


Explain the various types of normalization.

844


What is ase database?

760


What is a sequence? Explain it with one example?

850


How does non-cluster index functions?

864


can we delete autodiff back up that we have set through sql server agent.

1939


how do you do sql tuning?

1834


After normalization, what are the conditions which have to keep in mind to de-normalize it?

809


Should I store images in database?

779


Given a table of Player which contains Sno and player name, write a query which finds all possible Table Tennis doubles pairings.

1126


What does specialization in DBMS mean?

835


Two tables emp(empid,name,deptid,sal) and dept(deptid,deptname) are there.write a query which displays empname,corresponding deptname also display those employee names who donot belong to any dept.

1632