Examine this constraint information:
Which three statements are true? (Choose three.)
Examine this constraint information:
Which three statements are true? (Choose three.)
The DEPTNO column in the EMP table can contain NULLS since it is not explicitly stated to be NOT NULL, even though it is a foreign key. The COMMISION column can contain negative values as there are no constraints shown preventing negative amounts. The MANAGER column is a foreign key referencing the EMPNO column as indicated by the constraint information.
i think BCE are correct
BCE is Correct A. The SALARY column must have a value. .............FALSE B. The DEPTNO column in the EMP table can contain NULLS..........TRUE C. The COMMISION column can contain negative values. ....TRUE D. The DEPTNO column in the EMP table can contain the value 1...... TRUE WITH CONDITION. (If dept table primary key has 1 values) E. The MANAGER column is a foreign key referencing the EMPNO column........ TRUE F. The DNAME column has a unique constraint. FALSE G. An index is created automatically in the MANAGER column....FALSE
A is correct!! The SALARY column is part of a Check constraint CC_COMM that requires the SALARY to be greater than 100, which means it must have a value and cannot be NULL
Its correct there is a check constraint which mean it has to be > 100, yet it will not prevent a null value to be inserted in the column. In order to prevent not null, this specific constraint has to be added. Test it. A is wrong
I think B is wrong : The DEPTNO column in the EMP table can contain NULLS no because it refers to a PK so not possible.
NULL is actually the only exception. AN FK Column can have NULL Values even though the PK Column it is referencing does not.
BCE, D is wrong because DEP_NO has a constraint in the department table that prevents it from having a value less than 10, very tricky, those who answered D might get surprises after the exam.
BDE Is correct but why is C wrong?
BCE is correct
BCE are correct. D is wrong because DEPTNO in EMP table is referencign DEPTNO in DEPT and there is check constraint which demands DEPTNO in DEPT to be greater than 9
BDE is the correct answer
D is not correct bcz deptno > 9
why E ?
BCE - is the answer
deptno is a pk so cannot be null
It's a PK in dept not in emp
BCE seems correct
CDE seems to be right option
D is not correct because DEPTNO is foreign key referencing DEPTNO in DEPT table and there DEPTNO must > 9
DEPTNO is a foreign key referencing a primary key so it should be able to be 1