Hi,
When i communicate with user first time recent_date will be of that date , I want to query all the rows based on recent_date>= 2 and if day of recent_date is Thursday then recent_date >=4 and if it is friday then recent_date>=4
Basically I dont want to count Saturday & Sunday as part of reminder
Help with the Query..
select id from table where recent_date>=(IF DAYNAME(recent_date) IN('Thursday','Friday'),4,2);
Thanks :)