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
What is the physical storage length of the data types date, time, and timestamp?
What is ibm db2 connect?
How connect db2 database to datastage?
What is table space in db2?
What is a collection in db2?
What are the prerogatives?
Mention the different locking levels that are available in db2.
How to create db2 table in mainframe?
What are the two types of logging in the db2 database? Explain them.
What is the role of union all and union
What is the usage of open cursor command?
What is syscat in db2?
What is buffer pool and list some of them?
How to check last update on table in db2?
What does sqlcabc has?