Quantcast
Viewing all articles
Browse latest Browse all 14773

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

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