1Z0-007 · Question #149
Which SQL statement defines the FOREIGN KEY constraint on the DEPTNO column of the EMP table?
The correct answer is B. CREATE TABLE EMP. This statement provides correct syntax to define the FOREIGN KEY constraint on the DEPTNO column of the EMP table. Incorrect Answers A: There is incorrect syntax, because list of columns and column for the constraint need to be surrounded with the brackets. C: It is incorrect…
Question
Which SQL statement defines the FOREIGN KEY constraint on the DEPTNO column of the EMP table?
Options
- ACREATE TABLE EMP
- BCREATE TABLE EMP
- CCREATE TABLE EMP
- DCREATE TABLE EMP (empno NUMBER(4),
How the community answered
(42 responses)- A7% (3)
- B76% (32)
- C14% (6)
- D2% (1)
Explanation
This statement provides correct syntax to define the FOREIGN KEY constraint on the DEPTNO column of the EMP table. Incorrect Answers A: There is incorrect syntax, because list of columns and column for the constraint need to be surrounded with the brackets. C: It is incorrect to use FOREIGN KEY keywords to define constraint on the table. It can be used to add integrity constraint to existing table. D: It is incorrect to use FOREIGN KEY keywords to define constraint on the table. It can be used to add integrity constraint to existing table.
Topics
Community Discussion
No community discussion yet for this question.