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
Is db2 a mainframe?
what is the responsibility of the construction superintendent
What is load replace in db2?
What is the difference between dbm cfg and db cfg file in db2 ?
What is a page in db2?
What is view db2?
Can there be more than one cursor open for any program?
File not opened because library is *PROD and debug is UPDPROD(*NO). ? what may be the reason? how to solve it..?
What is database reorganization?
How do I create a view in db2?
What does db2 stand for?
How do you simulate the explain of an embedded sql statement in spufi/qmf?
Explain db2.
How to test SQL -911 error while developing COB-DB2 program
Explain package in db2 and its advantages?