Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
TRUNCATE TABLE edw.temp_daily_finance_rpt_cal; (Global Temporary Table)
INSERT INTO edw.temp_daily_finance_rpt_cal
SELECT time_id, calendar_date FROM edw.dim_time WHERE calendar_date >= to_date(trunc(sysdate)) - 1 AND calendar_date <= to_date(trunc(sysdate)) - 1; (dim_time --- just a look up table which will have date and years)
Do you need a commit?