Increments of a date using Oracle SQL -


We send mailouts using SQL each evening. Especially we want to send a reminder every 3 days, but I do not know at all how to do this, or even if it is possible?

Here is my code:

 from the  SELECT * table WHERE condition = 'pending' and (date_created = sysdate - 3 or date_created = sysdate - 6 or date_created = sysdate - 9)   

Something in that effect, but it is a good way of coding and it is also more effective than I will not need to go to hundreds! ^ _ ^

thanks

Try

 < Info on code> Oracle MOD:    from the table * Position = 'pending' and 'm.o. (sysdate-date_created, 3) = 0   



Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -