What is referential integrity?

Answers were Sorted based on User's Feedback



What is referential integrity?..

Answer / sadiq afroze

Referential integrity refers to the consistency that must be
maintained between primary and foreign keys, i.e. every
foreign key value must have a corresponding primary key value

Is This Answer Correct ?    22 Yes 5 No

What is referential integrity?..

Answer / 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

What is referential integrity?..

Answer / raghavendra k

For every Foriegn Key value in child table, there must be
same value is present in primary key column of parent table.

Is This Answer Correct ?    6 Yes 3 No

What is referential integrity?..

Answer / pranab kumar mohanty

The relation of the primary key of a base table with
foreign key of the reference table is known as referential
integriety.

Is This Answer Correct ?    5 Yes 2 No

What is referential integrity?..

Answer / guest

It is used relate more than table using RDBMS.For example
if you two table TAB1,TAB2.TAB1 which has column empno with
value ,TAB2 which has same value as previous mentioned TAB1
value.

Row in one table that are related Row in another table .

Is This Answer Correct ?    4 Yes 4 No

Post New Answer

More DB2 Interview Questions

Is it Possible to declare or create a cursor for UPDATE of table? If yes tell me how? If no Tell me why?

1 Answers   IBM, scintel,


When DB2 connection fails, will online program work or give errors.

1 Answers   Virtusa,


Where can you declare a cursor in a cobol-db2 program?

1 Answers  


Suppose pgm A calling Pgm B .Pgm B has some Db2 program. at the time of compilation should plan and package will be created for both A and B or only B? What is the concept?

3 Answers  


Which command is used to remove all rows from a table?

1 Answers  


Where besides the DB2 catalog is database object information stored by DB2?

1 Answers  


If the cursor is kept open followed the issuing of commit, what is the procedure to leave the cursor that way?

1 Answers  


How do I connect my db2 database to ibm?

1 Answers  


What is the connection string to connect to the DB2 Database ?

1 Answers   MCN Solutions,


how to resolve -805. give clear explination for that

2 Answers   IBM,


what are the copybook changes generally we done?can anyone tell me......... Thanks in advance........

1 Answers  


What error I will get if my select query gives multiple row while executing a Cobol-DB2 program.How can I solve it without using a cursor.

4 Answers   Cap Gemini, Verizon,


Categories