I have a renewal date column and I would like my query to look at my renewal date on today's date and return a value (lets say reminder_sent
) if their difference is 200 days. I want my query to exclude the weekends as well. Below what I roughly came up with. But I need help to get to my result. Could someone please help me with it.
dateiff(day,getdate(),convert(char(10),I.renew_date,101 )= 200