I want to know if you know how to date diff every 3 days im doing scheduler.
SELECT DISTINCT
CLAIM_NO,
ModifiedBy,
ClaimType,
ClaimStatus,
EmailAddress,
FROM EP_ADMIN_ITEM_REMINDER
WHERE Status = 1 AND DATEDIFF(Day,DateAdded,getdate()) = 3
This is my code in DATEDIFF i put into WHERE Clause
I have 2 columns for date 1st DateAdded 2nd DateSent. I need to schedule my thing every 3 days so it will update the datesent first and it will check if the datesent is Greterthan the dateadded into 3. I just want to know if my WHERE clause is correct. thanks
1 Answer