Quantcast
Channel: Teradata Forums - Database
Viewing all articles
Browse latest Browse all 14773

Immediately exit a query if a condition is verified - response (1) by dnoeth

$
0
0

Add a condition based on current_date:

WHERE (your current conditions)
AND (CURRENT_DATE - DATE '0001-01-01') MOD 7 = 0

When you check Explains you'll still get some RETRIEVE/JOIN steps, but they should have an "unsatisfiable condition"
 
Dieter


Viewing all articles
Browse latest Browse all 14773

Trending Articles



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