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 are bind concepts in db2 cobol?
What is a buffer in memory?
What is a bind in db2?
What is runstats and reorg in db2?
How to access db2 tables in mainframe?
What is a db2 table?
What is with ur in db2?
What is role in db2?
What type of database is db2?
What is database alias db2?
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.
What is the syntax for FETCH in DB2 ?
Explain the contention situations caused by locks?
What is a Foreign Key?
Is db2 a database?