Query - Discontinue Open Tasks of 90 days

 UPDATE arstasks

SET    status = 4
WHERE  at.taskdate <= Date(Date_sub(Now(), INTERVAL 90 day))
       AND at.status IN ( 1, 2 )
LIMIT 100; 

Comments

Popular posts from this blog

Enhanced Query - To Update Account Status and Name

Connection Config - STATUS_THRESHOLD_CONFIG

Email variables _ Register User