I want to purge 3 months old data from database but problem is i don't have date column in that table.
Is it possible by any means. Please help me out
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Prakash KumarRank #1,799 · 828 reputationPosted Oct 23, 2018, 1:29 AM EDT
Hi Sana Khan,
Use the below query
select * from table where rowid in (
SELECT rowid FROM table
MINUS
SELECT rowid
AS OF TIMESTAMP (SYSTIMESTAMP - INTERVAL '3' MONTH));
FROM table
Sana Khan26 reputationPosted Oct 23, 2018, 2:03 AM EDT
Sourav MukherjeeRank #850 · 2.6K reputationPosted Dec 6, 2018, 3:56 PM EST