Hi Sanjeev,
don't create a view on top of the table, replace the table with the view:
CREATE VIEW SSURI.CDC_BATCH1 (BATCH_START, BATCH_END)
AS
SELECT CURRENT_DATE - 10, CURRENT_DATE;
SELECT * FROM SSURI.CUSLDSFL_SI CROSS JOIN CDC_BATCH1 as x
WHERE AUD_TIME BETWEEN x.BATCH_START AND x.BATCH_END
Hi Sanjeev,
don't create a view on top of the table, replace the table with the view:
CREATE VIEW SSURI.CDC_BATCH1 (BATCH_START, BATCH_END)
AS
SELECT CURRENT_DATE - 10, CURRENT_DATE;
SELECT * FROM SSURI.CUSLDSFL_SI CROSS JOIN CDC_BATCH1 as x
WHERE AUD_TIME BETWEEN x.BATCH_START AND x.BATCH_END
Dieter