I am trying to write a query which will work out the difference between two dates but without counting specific days.
select ((DATEPART(weekday,(DATEDIFF(DAY,StartDate,EndDate)))) NOT IN (1,5)) FROM MyTable
In this example I'm trying to remove Monday and Friday from difference days (StartDate EndDate)