query about check constraint [closed]

Since you are using Oracle you can use CHECK constraint saying CONSTRAINT check_dates CHECK (my_date_column BETWEEN date ‘1994-10-25’ AND date ‘2016-05-10’) Your query (as in comment) should be like below create table dob5 ( birthdate date not null, CONSTRAINT check_dates CHECK (birthdate BETWEEN date ‘1994-10-25’ AND date ‘2016-05-10’) ); See this demo fiddle http://sqlfiddle.com/#!4/779f9