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 use of db2 optimizer?
Which are the db2 tools to protect integrity of the database?
What is clone table?
What are the various isolation levels possible?
What does db2 blu stand for?
What is db2 and what is the use of db2 optimizer?
Which component is used to execute the sql statements?
Mention the different locking levels that are available in db2.
Differentiate between cs and rr isolation levels? Where do you specify them?
What is db2? Explain.
In case if at some point of time db2 is down, would that impact the pre-compilation process of a db2-cobol program?
Is the primary key a clustered index?
what is a corelated subquerry?
Which isolation level provides highest data integrity?
What do you mean by storage group (stogroup)?