I'm sending emails from sql server and need to only send results that are due 30 days from the time the email gets sent out.
so, in my table I have a column called due_date
I want to send out an email notification but only let the user know which due dates are coming up within the next 30 days from the date the notification gets sent out.
I've tried messing with the following and am stuck.
WHERE DUE_DATE = DATEADD(DAY, 30, GETDATE())
Any help would be appreciated
Thanks
so, in my table I have a column called due_date
I want to send out an email notification but only let the user know which due dates are coming up within the next 30 days from the date the notification gets sent out.
I've tried messing with the following and am stuck.
WHERE DUE_DATE = DATEADD(DAY, 30, GETDATE())
Any help would be appreciated
Thanks