Organizational Research By

Surprising Reserch Topic

Experts Most Trusted Topic


Question:Which of the following SQL statements defines a FOREIGN KEY constraint on the DEPT NO column of the EMP table?


a.        CREATE TABLE EMP (empno NUMBER(4), ename VARCHAR2(35), deptno NUMBER(7,2) NOT NULL, CONSTRAINT emp_deptno_fk FOREIGN KEY deptno REFERENCES dept deptno);
b.        CREATE TABLE EMP (empno NUMBER(4), ename VARCHAR2(35), deptno NUMBER(7,2) CONSTRAINT emp_deptno_fk REFERENCES dept (deptno));
c.        CRETE TABLE EM (empno NUMBER(4), ename VARCHAR2(35) deptno NUMBER (7,2) NOT NULL, CONSTRAINT em_deptno_fk REFERENCES dept (deptno) FOREIGN KEY (deptno));
d.        CREATE TABLE EMP (empno NUMBER (4), ename VARCHAR2(35), deptno NUMBER(7,2) FOREIGN KEY CONSTRAINT emp deptno fk REFERENCES dept (deptno));

asked Sep 13, 2013 in MYSQL by anonymous
edited Sep 12, 2013
0 votes
140 views



Related Hot Questions



Walkin Jobs Opening



Government Jobs Opening


...