What is referential integrity?

Answer Posted / renu gupta

Referential integrity refers to the consistency that must
be maintained between primary and foreign keys.

1.An insert into primary key table cannot violate
referential integrity and no checking is required
2.A deletion of foreign key value can not violate
referential integrity and no checking is required
3.Changes in primary key is allowed only when those values
are not in foreign key.
4.Insert and updates in foreign key is allowed only when it
has a matching value in primary key
5. If RESTRICT is specified on foreign key definition,
deletion of primary key is not allowed
6. If CASCADE is specified, both primary and foerign keys
values can be deleted together only
7. If SET NULL is specified, then the foreign key value is
set null , provided nulls are allowed in the foreign key
column

Is This Answer Correct ?    12 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain about rct.

639


Is it possible using max on a char column?

596


What is the difference between using bind () and rebind () methods of naming class?

779


How can you quickly find out the # of rows updated after an update statement?

622


How to compare data between two tables in db2?

652






How to create backup table in db2?

633


What is data manager?

597


what is the responsibility of the construction superintendent

1654


Hello All, We have requirment to Replace BMC Db2 Load product thru CA FAST LOADPlus product. Do anyone have JCL to for FAST LOADPLUS and what all are thing need to take in consideration.

2316


How to access db2 tables in mainframe?

608


Is db2 a database?

565


Which command is used to connect to a database in DB2 ? Give the Syntax.

590


what is db2 restart?

1684


File not opened because library is *PROD and debug is UPDPROD(*NO). ? what may be the reason? how to solve it..?

2369


i want to maintain uniqueness on pdf without make lf??????????

1624