What is the self-referencing constraint?

Answers were Sorted based on User's Feedback



What is the self-referencing constraint?..

Answer / s

Self-referencing constraint makes the table both the parent
and dependent table in the same referential constraint. The
foreign key to the table is defined after the table is
created.

Is This Answer Correct ?    3 Yes 0 No

What is the self-referencing constraint?..

Answer / mehdee

- To me it is when we create DB2 table and we use options
like, for example:
CONSTRAINT BONUS CHECK(BONUS <= SALARY)
OR
RESTRICT ON DROP

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More DB2 Interview Questions

Suppose I have a program which uses a dynamic SQL and it has been performing well till now. Off late, I find that the performance has deteriorated. What happened?

1 Answers  


Can you search give an array in the WHERE clause of a db2 query?

1 Answers  


What are catalog tables in db2?

0 Answers  


While unloading huge amount of data from table. Suddenly job failed some error. Imagine 1M data unloading, In that 90% data unloaded only 10% left, So if want to unload the rest 10% what needs to be done? Whether do i need to start from top or anything ?

0 Answers   JPMorgan Chase,


what is the Foreign key? explain?

2 Answers  






Can we declare cursor in Procudere division or open the cursor in the Working storage section. Is there any particular rules in the usage of cursors lifecycle

1 Answers   Infosys,


This was related to -811 sqlcode, In a COBOL DB2 program which accesses employee table and selects rows for employee 'A', it should perform a paragraph s001-x if employee 'A' is present. In this case it gets -811 sqlcode, but still it process the paragraph s001-x. What could be wrong in my code.

3 Answers  


How can we define a table? How can we apply SEARCH ALL on it ?

1 Answers  


What is meant by repeatable read?

4 Answers  


What is catalog database in db2?

0 Answers  


What is cursor stability?

1 Answers  


What is subquery ?

6 Answers  


Categories