Im using SQL/PL developer and I have a table named Appeal, that has 2 attributs OpenDate and CloseDate. And I want to add a constraint to ensure that open date will be smaller than close date. I have a lot of records in this table.
this is my code:
alter table appeal
add constraint Check_Dates
check (OpenDate < CloseDate)
and I get en error saying: ORA-02293: cannot validate (STSTEM.CHECK_DATES) - check constraint violated
any ieads? Thanx