Quantcast
Channel: Teradata Forums - All forums
Viewing all articles
Browse latest Browse all 27759

Optimizer's inability to resolve variables for partitioning - response (4) by dnoeth

$
0
0

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
 


Viewing all articles
Browse latest Browse all 27759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>