create table duration ( duration_code number(2) primary key, from_date date not null, to_date date not null, unique (from_date,to_date) ) /