EMP.DEPTNO may be NULL because its foreign key does not make the column NOT NULL. A negative COMMISSION value is valid if it remains less than SALARY; the displayed constraints impose no nonnegative requirement on commission. EMP.MANAGER references SYS_C0012484, the primary-key constraint on EMP.EMPNO, so it is a foreign key to that column. Oracle check constraints are satisfied when their condition is true (or unknown because of NULL), and primary keys cannot contain NULL values.
Community Discussion