Code:
CREATE TABLE EMP (EMP_ID NUMBER(10), ENTRY_DATE DATE DEFAULT SYSDATE NOT NULL, EMP_DOB DATE, CONSTRAINT EMP_DOB_NON_FUTURE CHECK (EMP_DOB <= ENTRY_DATE) );
You cannot specify a check constraint for a view. However, you can define the view using the WITH CHECK OPTION clause, which is...
Leave a comment: