Query - Get Tasks open for more than 90 days

SELECT taskkey
FROM   arstasks at
WHERE  at.taskdate <= Date(Date_sub(Now(), INTERVAL 90 day))
       AND at.status IN ( 1, 2 ); 

Comments

Popular posts from this blog

Enhanced Query - To Update Account Status and Name

Connection Config - STATUS_THRESHOLD_CONFIG

Email variables _ Register User