Avatar of VBdotnet2005
VBdotnet2005
Flag for United States of America

asked on 

Exclude weekend and holiday from a holiday table in sql

This is my calendar table. I want to return a previous day where it is not weekend or holiday.
Sample today is 12/28/2015 and last weekend 12/26/2015 and 12/27/2015. However, Friday (12/25/2015) was a holiday.I want it to return 12/24/2015 instead.

my Holiday table

01/01/2015
05/25/2015
07/04/2015
09/07/2015
11/26/2015
12/25/2015
ASP.NETMicrosoft SQL Server 2008Microsoft SQL Server

Avatar of undefined
Last Comment
Scott Pletcher

8/22/2022 - Mon