Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

deletion of records older then 90 days

chandra_1986Nov 4 2020

HI experts,

we have table where a4297735 records from below condition on table J_DOC, we need to delete the records older then 90 days for those status='Pent' .
First we need to store this records into temp table, while creating temp table on below condition database is getting stopped, kindly suggest how can we store into temp table. to delete records older then 90 days and status='Pent' from table J_DOC.'

SELECT count(*)
FROM J_DOC
WHERE LAST_UPDATE_TIME_UTC <= TRUNC(SYSDATE) - 90 and status='Pent';

4297735

Comments
Post Details
Added on Nov 4 2020
13 comments
9,904 views