I'm having one holiday table based on that I need to return last working date.
Table_holiday
Id Date Text
1 2013-03-29 Good Friday
2 2013-05-01 Maharashtra day
3 2013-05-02 Holiday
When I execute my date_recursive function it should have to check and return me last_business date
For example
If I execute it on @date datetime = '2013-03-29' it should return me last working date '2013-03-28'as this is the last working date
any help m newbie in sql.