How do I create a table MANAGER (EMP-NO, MANAGER) where
MANAGER is a foreign key which references to EMP-NO in the
same table? Give the exact DDL.
Answer Posted / s
CREATE TABLE QUALIFIER.TABLE
(EMP-N0 CHAR(6) NOT NULL,
MANAGER CHAR(6) NOT NULL)
IN TABLESPACE;
ALTER TABLE QUALIFIER.TABLE
FOREIGN KEY FKM (MANAGER) REFERENCES QUALIFIER.TABLE
ON DELETE CASCADE;
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
What is syscat in db2?
What is the maximum number of columns in a db2 table?
I understand Join always perform better than subqueries. Then what is the advantage/use of Subqueries/correlated subqueries etc.,in DB2 programming.Please explain.
What is the use of predicate?
What is dpf in db2?
What is meant by union and union all?
What is plan in cobol db2?
What are foreign keys in db2?
What is db2 optimizer?
What is explain plan in db2?
what is db2 restart?
Define buffer pool.
What is buffer pool and list some of them?
Which is faster delete or truncate?
In case if at some point of time db2 is down, would that impact the pre-compilation process of a db2-cobol program?