Hello to all
where I am wrong
in this one ( I have to check no rows can INSERT with column FCOL1 = 'R' can have FCOL2 = null,
ALTER TABLE table_a
ADD CONSTRAINT chk_FDELETE
CHECK (FCOL1= 'R' and FCOL2 is null);
I get
ORA-02293: cannot validate (ORACLE_RV.CHK_FDELETE) - check constraint violated
but when I do
select count(*) from table_a
where FDELETE = 'R' and ANNO_RICO is null;
I get 0 rows (zero
Where I am wrong?
Thanks in advance