what is primary key,unique key, foreign key? can u teach me
in simple language?
Answer Posted / sathish
1)Primary key is unique key but foriegn key always refers
to
primary key.
2) Primary keys enforce entity integrity by uniquely
identifying entity instances. Foreign keys enforce.
3)Primary key is unique
primary key is not NULL and
foreign key is NULL
foreign key reference as Primary key in another table.
4) primary key is used to identify a row and it doesnot
allow
null values. It avoids duplication of rows.
whereas foreign key refers to a column or combination of
columns included in the defenition of referential integrity.
referential integrity by completing an association between
two entities.
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
what is rcp,if rcp disabled what happen?
What is the difference between oracle and MS Access?
Is hive a database?
Which three commands cause a transaction to end?
What is the difference between primary and candidate key?
what is transaction state, buffer management, shadow paging
where can i free download sqlserver2008..i can install sqlserver2008 without visual studio 2008 and work on it
Difference between sql and mysql?
Explain data independence & its types.
Explain storage manager?
aht is the difference b/w network & hierarchial & relational dbms????
Explain transaction manager?
How to do performance tunning a database in DB2 V8.2 UDB in linux
Explain the record term used in database.
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.