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 / sahil garg
CREATE TABLE TB_MANAGER
(EMPNO CHAR(6) PRIMARY KEY ,
MANAGER CHAR(6) );
ALTER TABLE TB_MANAGER
ADD CONSTRAINT TB_FK FOREIGN KEY (MANAGER) REFERENCES
TB_MANAGER(EMPNO);
Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
Give the name of some fields form sqlca.
What is runstats utility in db2?
What is a db2 package?
What is db2? Explain.
Is ibm db2 open source?
What is the difference between drop table and delete table?
Are view updateable?
What is catalog database in db2?
What is db2 connect?
Are views updateable?
What is the physical storage length of time data type?
Explain in detail about buffer manager and its functionalities?
what is db2 restart?
Is db2 a programming language?
What is explain plan in db2?