i need a function to do something like this:
select datediff( '2016-01-01', '2015-01-01')
but ignoring some days, example :
calculate the interval between 2 dates only Mondays and Thursdays ignoring the other days
I do not want to make an select at the DB, only calculate the number of days between dates
sorry my English