Hi,
My question is : how to compare some date with sysdate and if the difference more than 10 days, delete those records.
I've create the trigger and following script supposed to do this but it does not.
if (sysdate - ld.trans_date_time)<10 then
RAISE_APPLICATION_ERROR(-20000,'Cannot Delete a Transaction');
It aloows delete all records, probably that all records date is dd.mm.1995.
any ideas will be appresiated.
My question is : how to compare some date with sysdate and if the difference more than 10 days, delete those records.
I've create the trigger and following script supposed to do this but it does not.
if (sysdate - ld.trans_date_time)<10 then
RAISE_APPLICATION_ERROR(-20000,'Cannot Delete a Transaction');
It aloows delete all records, probably that all records date is dd.mm.1995.
any ideas will be appresiated.